Beruflich Dokumente
Kultur Dokumente
ashishfa@cse.iitb.ac.in
21 January 2020 1
asgn1
asgn2
Last Assignment
System.out.println("\"Can
we print '\\' with
System.out.println() statement?\"" );
Program int2
Types of numbers
int
Whole numbers like 0, 575, -345 etc.
double
Numbers with decimal point
like 12.453, 3.432, 0.0000002
Storage area
a 10
Assignment…
int a , b ; // a =? b = ?
a = 4; // a=4 b=?
b = 7; // a=4 b=7
a = b; // a=7 b=7
b = a; // a=7 b=7
a = 5; // a=5 b=7
Characters
‘a’, ‘A’, ‘c’ , ‘?’ , ‘3’ , ‘ ’
(last is the single space)
**********
* *
* *
* *
**********