import java.util.Scanner;
class random1
{
public static void main(String []ars)
{
int a;
float b;
String s;
Scanner in=new Scanner(System.in);
System.out.println("ENTER YOUR NAME");
s=in.nextLine();
System.out.println("entered name is"+s);
System.out.println("enter the number");
a=in.nextInt();
System.out.println("number entered is"+a);
System.out.println("enter the float value");
b=in.nextFloat();
System.out.println("entered number is"+b);
}
}
class random1
{
public static void main(String []ars)
{
int a;
float b;
String s;
Scanner in=new Scanner(System.in);
System.out.println("ENTER YOUR NAME");
s=in.nextLine();
System.out.println("entered name is"+s);
System.out.println("enter the number");
a=in.nextInt();
System.out.println("number entered is"+a);
System.out.println("enter the float value");
b=in.nextFloat();
System.out.println("entered number is"+b);
}
}
No comments:
Post a Comment