Java - A school student's guide (following the CISCE Syllabus)
This repository has been created to give students, mainly from Class IX and X to get a basic idea of Java, and some of the things they will learn during the academic years.
Table of Contents
1. Basic Output Printing
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
public class try1 {
public try1() {
}
public static void main(String[] name) {
int tot = 240;
int avg = tot / 3;
String name1 = "Agnihotra Nath";
System.out.println("Name of Student:" + name1);
System.out.println("Marks obtained in Subject 1: 90");
System.out.println("Marks obtained in Subject 2: 80");
System.out.println("Marks obtained in Subject 3: 70");
System.out.println("Total Marks obtained:" + tot);
System.out.println("Average of Marks obtained:" + avg);
}
}
What is it?
In this program, we get to see how a basic program gives us an output (a basic text output).