Professional Documents
Culture Documents
* WAP to read 2 nos & Exchange their Values without using third variable.
* WAP to read L,B,H of a Box & find its Volume & SurfaceArea.
If Statement
* WAP to read 2 nos & check if their last digit is same or not.
* WAP to read marks for 5 subject & check if student is passed or not. (passing marks
40 per subject).
* WAP to read 2 nos & find greatest of Them
* WAP to a 3 digit no & check if sum of cube of its digits is equal to that no or not
*WAP to read 3nos & check their last digit is same or not.
* WAP to read marks for 5 subject & print Total . Also print percentage if student is
* WAP to read 3 angles & check if triangle can be formed or not. If triangle can be
*WAP to read age & gender of person & check if person is Eligible for marriage or not.
* WAP to read Salary of Employee & print Commission according to following Criteria
Sal Commission
<10000 10%
>20000 15%
* WAP to read percentage of student & print Div (>=75 DT , 60-75 1st class , 50-60 2nd
Loops Programs
* WAP to read a no & print all even nos form 1 to that no.
* WAP to print all nos from 1 to 10 by using while, for & do-while loop.
* WAP to read a no & find sum of all nos from 1 to that no.
* WAP to find a 3 digit Armstrong no. (sum of cube of its digit is equal to that no).
* WAP to read a no & count all nos which divides the given no perfectly.
* WAP to read a no & print all nos which divides the given no perfectly.
1]
12345
1234
123
12
2]
54321
4321
321
21
3]
*****
****
***
**
4]
1234554321
1234554321
1234554321
1234554321
5]
12345123451234512345
12345123451234512345
12345123451234512345
6]
ABCDE
ABCD
ABC
AB
7]
ABCDEFEDCBA
ABCDE EDCBA
ABCD DCBA
ABC CBA
AB BA
A A
8]
*************
***********
*********
*****
***
*
Switch Programs
* WAP to read a single no & print all nos from 1to that no in words.
* WAP to read a color code (char value) & print appropriate color.(R- Red, GGreen,
* WAP to read 2 nos & a Operator sign & perform the operation according to
operator.
WAP to calculate square of a,b,c,d,e passed as an argument to a function and print it in main function