Write a program to print your Name, Class, Roll_No, Marks and Age. Name this file, 'MyProfile'.
238 Likes
public class MyProfile { public static void main(String args[]) { System.out.println("Name: Sneha Nayak"); System.out.println("Class: 8C"); System.out.println("Roll No: 24"); System.out.println("Marks: 87"); System.out.println("Age: 15"); } }
Answered By
97 Likes
What are variables? How are they different from Constants?
Write a program to print, "Welcome to the World of Computers".
Write a program to print your School name four times in separate lines.
Write a program to find the sum and average of three numbers.