write a programa in Java to print
your name, class, foll number
and mauke as
I am John
Clau - IX
Roll nuruber - 10
Monks - 82
Marks should be entered by keyboard.
Answers
Answered by
2
Answer:
- I guess you meant marks should be taken as input
import java.util.*;
class abc{
public static void main (String ar []){
Scanner sc=new Scanner (System.in);
System.out.prrintln("Enter your marks");
int m=sc.nextInt(); //Accepting input
//Printing...
System.out.println("I am Jhon");
System.out.println("Class - IX");
System.out.println("Roll Number - 10");
System.out.println("Marks - "+m);
}
}
Similar questions