ToDo in today Class.........
1) Swap two variable values with out using 3rd variable
2)Accept two integers and print absolute difference
Hint: diffrence must be +ve (use abs() function )
3) Accept 4 digit year and print leap year or not
4)Accept 3 subject marks of student and print division
>=70% ---- distinction
>=60% ----- first
>=50% ------ pass other wise fail
5) Accept a 4 digit number and print digit sum.
Hint: use operators only
6) Accept a char and print in alternate case
7) Accept 3 integers and print second maximum
8)Accept a floting point value and print only the decimal part
Hint : Example i/p is 10.345 o/p is 0.345
Do in this order : 1 , 2 , 6 , 8 ,3 .....
1) Swap two variable values with out using 3rd variable
2)Accept two integers and print absolute difference
Hint: diffrence must be +ve (use abs() function )
3) Accept 4 digit year and print leap year or not
4)Accept 3 subject marks of student and print division
>=70% ---- distinction
>=60% ----- first
>=50% ------ pass other wise fail
5) Accept a 4 digit number and print digit sum.
Hint: use operators only
6) Accept a char and print in alternate case
7) Accept 3 integers and print second maximum
8)Accept a floting point value and print only the decimal part
Hint : Example i/p is 10.345 o/p is 0.345
Do in this order : 1 , 2 , 6 , 8 ,3 .....
No comments:
Post a Comment