Computer Applications
Write a program to print your Name, Class, Roll_No, Marks and Age. Name this file, 'MyProfile'.
Java
Java Intro
237 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
![BlueJ output of Write a program to print your Name, Class, Roll_No, Marks and Age. Name this file, `MyProfile'. BlueJ output of Write a program to print your Name, Class, Roll_No, Marks and Age. Name this file, `MyProfile'.](https://cdn1.knowledgeboat.com/img/lgx8/c5-java-p2.jpg)
Answered By
97 Likes