import java.util.Scanner; class A { public static void main(String args[]) { int a; char b; double d; long e; byte f; boolean g; String h; a=10; b=’e’; d=23.1; e=44; f=11; g=true; h=”aaa”; System.out.println(a); System.out.println(b); System.out.println(d); System.out.println(e); System.out.println(f); System.out.println(g); System.out.println(h); } }
import java.util.Scanner; class A { public static void main(String args[]) { double d; System.out.println(“Enter a Number”); Scanner inp=new Scanner(System.in); d=inp.nextDouble(); System.out.println(d); } }
class Add { public static void main(String args[]) { int a,b,c; a=19; n=20; c=a+b; System.out.println(“Sum ”+c); } }
class A { public static void main(String args[]) { System.out.println(“Hello World”); } }