forked from CodeX-SIT/community-25-java-task1-Java-Task1
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathq1.java
More file actions
27 lines (24 loc) · 896 Bytes
/
q1.java
File metadata and controls
27 lines (24 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//import java.util.Scanner;
public class q1
{
public static void main(String[] args)
{
int age = 25;
double height = 5.8;
char grade = 'A';
boolean isStudent = true;
String name = "John Doe";
System.out.println("=== Student Information ===");
System.out.println("Name: " + name);
System.out.println("Age: " + age);
System.out.println("Height: " + height + " feet");
System.out.println("Grade: " + grade);
System.out.println("Is Student: " + isStudent);
System.out.println("\n=== Data Type Information ===");
System.out.println("age data type: int");
System.out.println("height data type: double");
System.out.println("grade data type: char");
System.out.println("isStudent data type: boolean");
System.out.println("name data type: String");
}
}