Computer Applications
Write a program to print your Name, Class, Roll_No, Marks and Age. Name this file, 'MyProfile'.
Java
Java Intro
220 Likes
Answer
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");
}
}
Output
Answered By
93 Likes