1. Engineering
  2. Computer Science
  3. convert this java code to c...

Question: convert this java code to c...

Question details
Convert this java code to c#
import java.util.Scanner; class Main ( public static void main(String[] args) f // Taking user input System.out.print( Enter data in digital i.e binary form:); Scanner sc-new Scanner (System.in); String b - sc.next ): System.out.println( Analog signal is); System.out.println( for(int į毗į<b.length(); į++) İf(b. charAt(1) .1.) // CASE when character is 1 . System.out.print( else II CASE when character is e System.out-print( System.out.println import java.util.Scanner class Main public static void main(String] args) Il Taking user input Systemout.print Enter data in digital i.e binary form: ) Scanner se new Scanner(System.in); String b sc.nexto: System.out.printlnAnalog signal is) System out.printin fortint-o; i«t.length(); İH) İfb.charAt(i)--l) // CASE when character is 1 System.out.print) else I CASE when character is 0 Systemout.print Systemout.println Enter data in digital i.e binary form: 101010 Analog signal is
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution