View Code of Problem 1

public class sum{
  public static void main(String[] args){
    int a=1,b=1;
    int c=a+b;
    System.out.println(""+c)
      }
}
/*
Main.java:5: error: ';' expected
    System.out.println(""+c)
                            ^
1 error
*/

Double click to view unformatted code.


Back to problem 1