· Write a program to accept the two no and display sum.
·
Write a program to accept the two no and display
sub
·
Write a program to accept the two no and display
multi
·
Write a program to accept the two no and display
div
·
Write a program to accept the three no and
display sum
·
Write a program to accept the marks of p,c,m and
display average
·
Write a program to accept the radius and display area of circle
·
Write a program to accept the base and height
and display area of triangle
·
Write a program to accept the side and display
area of square
·
Write a program to accept the side and display
area of square
·
Write a program to accept the principle, time
,rate and display simple interest
·
Write a program to accept the salary and display
IT where it is 5% of salary
·
Write a program to accept the salary and Find
DA, HRA,PF,GROSS,IT,NETSALARY
WHERE DA IS 5% OF SALARY
HRA IS 7% OF SALARY
PF IS 2% OF SALARY
GROSS=SALARY+DA +HRA-PF
IT IS 5% OF GROSS
NETSALARY=GROSS - IT
·
Write a program to accept the two no and swap
·
Write a program to accept the two no and swap
without using 3rd variable.
Remainder
·
Write a program to accept the no and display
remainder where no is divided by 5
·
Write a program to accept the min and convert in
hours and min
·
Write a program to accept the paise and convert
in rupees and paise
·
Write a program to accept the no of days and
convert in year, months, day
·
Write a program to accept the two employees of
working hours and min and display total hours and total min.
·
Write a program to accept the seconds and
convert hours,min,seconds
If -else
·
Write a program to accept the marks and check
marks is greater the 60 then display 1st div other fail
·
Write a program to accept the salary and check
salary is greater the 10000 then display manager and officer
·
Write a program to accept the no and check no is
(+)ve or (-ve)
·
Write a program to accept the no and check no is
even or odd
·
Write a program to accept the year and check
year is leap year or not
·
Write a program to accept the two no and display
max
·
Write a program to accept the two no and display
min
·
Write a program to accept the salary and check
salary are greater the 10000 then it is 5% of salary otherwise it is 2% of
salary
·
Write a program to accept the unit and check
unit is greater the 500 then bill is 5 rs per unit otherwise bill is 2 rs per
unit
·
Write a program to accept the marks of three
subject and check average marks is greater then 60 then display 1ST
div otherwise Fail
If else if
·
Write a program to accept the marks and check
following condition
Marks>=60 1st div
Marks>=45 2nd div
Marks>=33 3rd div
Otherwise fail
·
Write a program to accept the salary and check
following condition
salary>=50000 Manager
salary>=40000 Task
Manager
salary>=30000 Officer
salary>=15000 Supervisor
otherwise Worker
·
Write a program to accept the Number and check
Number is (+)ve,(-)ve or zero
·
Write a program to accept the Number and check
Number is even, odd or zero
Logical And(&&)
·
Write a program to accept the marks of
Phy,Chem,Math and check Phy>=60 and Chem>=45 and Math>=70 then display
1st div otherwise fail
·
Write a program to accept the 3 side of triangle
and check triangle is equilateral triangle or not
·
Write a program to accept the 3 side of triangle
and check triangle is possible or not
·
Write a program to accept the 3 number and
display maximum
Logical Or(||)
·
Write a program to accept the marks of
Phy,Chem,Math and check Phy>=60 or Chem>=45 or Math>=70 then display 1st
div otherwise fail
·
Write a program to accept the 3 side of triangle
and check triangle is isosceles triangle or not
·
Write a program to accept the character and
check character is vowel or consonant
Logical Not(!)
·
Write a program to accept the Number and check
number is not equal 5 then display not equal other equal.
·
Write a program to accept the 3 side of triangle
and check triangle is scalene triangle or not
·
Write a program to accept the character and
check character is consonant or vowel
·
Write a program to accept the 3 side of triangle
and check triangle is equilateral, isosceles or scalene triangle
Switch case
·
Write a program to Accept the week Number and
display week name.
·
Write a program to Accept the month Number and
display month name
·
Write a program to Accept the two no and
menu option
1 for addition
2 for Substruction
3 for Multiplication
4 for Division
Enter your choice
·
Write a program to Accept the two no and
menu option
+ for addition
- for Substruction
* for Multiplication
/ for Division
Enter your choice
While Loop
·
Write a program to display one message 5 times.
·
Write a program to accept the 5 number and
display sum
·
Write a program to accept the 5 student marks
and display total marks
·
Write a program to accept the 5 employee salary
and display total salary
·
Write a program to accept the 5 number and
display sum of even and sum of odd
·
Write a program to accept the 5 number and
display sum of (+)ve and sum of (-)ve
·
Write a program to accept the 10 student marks
and display total marks of 1st div,2nd div,3rd
div and fail
Marks>=60 1st div
Marks>=45 2nd div
Marks>=33 3rd div
Otherwise fail
·
Write a program to accept the 5 number and count
how many numbers are even or odd
·
Write a program to accept the 5 number and count
how many number are (+)ve or (-)ve
·
Write a program to accept the 5 number and count
how many numbers are vowel or consonant
·
Write a program to accept the 10 number and
count how many numbers are uppercase, lowercase, digit or extra character
·
Write a program to accept the 10 students marks
and count how many students are 1st div,2nd div ,3rd
div and fail
Marks>=60 1st div
Marks>=45 2nd div
Marks>=33 3rd div
Otherwise fail
·
Write a program to accept the 5 number and
display Maximum
·
Write a program to accept the 5 number and
display Minimum.
·
Write a program to accept the number and display
factorial
·
Write a program to accept the two number and
display multiplication without using multiplication sign
·
Write a program to accept the number and power
and display power of given number without using power function.
·
Write a program to accept the number and display
factor.
·
Write a program to accept the number and display
sum of factor.
·
Write a program to accept the number and count
how many factors.
·
Write a program to accept the number and display
max of factor.
·
Write a program to accept the number and check
number is prime number or not.
·
Write a program to accept the number and check
number is perfect number or not.
·
Write a program to accept the number and check number
is composite number or not.
·
Write a program to accept the two number and
display common factor
·
Write a program to accept the two number and
count how many common factor
·
Write a program to accept the two number and
display maximum common factor
·
Write a program to accept the two number and
display HCF.
·
Write a program to accept the two number and
display LCM.
·
Write a program to accept the number and display
digit.
·
Write a program to accept the number and count
how many digits.
·
Write a program to accept the number and display
maximum digits.
·
Write a program to accept the number and display
minimum digits.
·
Write a program to accept the number and check
number is palindrome number or not.
·
Write a program to accept the number and check
number is Armstrong number or not.
For loop
Series
·
1,2,3,4,5,6,7,8,9………………………………………………………………….N
·
2,4,6,8,10,12,14………………………………………………………………….N
·
1,3,9,11,13,15,17…………………………………………………….………….N
·
1,4,9,16,25,36…………………………………………………………………….N
·
1,8,27,64…………………………………………………………………………….N
·
24,99,225,399…………………………………………………………………….N
·
0,3,8,15,………….………………………………………………………………….N
·
0,7,26……………..………………………………………………………………….N
·
2,10,17……………………………………………………………………………….N
·
1,2,4,7,11……….………………………………………………………………….N
·
2,4,8,16,32…………………………………………………………………………N
·
1,9,25,49……………………………………………………………………………N
·
4,16,36,64………………………………………………………………………….N
·
0,1,1,2,3,5,8……………………………………………………………………….N
Sum of Series
·
1+2+3+4+5+6+7+8+9+………………………………………………………………….N
·
2+4+6+8+10+12+14+………………………………………………………………….N
·
1+3+9+11+13+15+17+…………………………………………………….………….N
·
1+4+9+16+25+36+…………………………………………………………………….N
·
1+8+27+64+…………………………………………………………………………….N
·
24+99+225+399+…………………………………………………………………….N
·
0+3+8+15+………….………………………………………………………………….N
·
0+7+26+……………..………………………………………………………………….N
·
2+10+17+……………………………………………………………………………….N
·
1+2+4+7+11+……….………………………………………………………………….N
·
2+4+8+16+32+………………………………………………………………………N
·
1+9+25+49+……………………………………………………………………….…N
·
4+16+36+64+…………………………………………………………………………. N
·
0+1+1+2+3+5+8+……………………………………………………………………N
·
1-2+3-4+5-6+7-8+9-.……………………………………………………………….N
·
2-4+6-8+10-12+14+………………………………………………………………….N
Nested Loop
1 12 123 1234 12345 |
1 21 321 4321 54321 |
* ** *** **** ***** |
1 13 135 1357 13579 |
1 31 531 7531 97531 |
5 54 543 5432 54321 |
9 97 975 9753 97531 |
5 45 345 2345 12345 |
9 79 579 3579 13579 |
1 22 333 4444 55555 |
1 123 12345 1234567 123456789 |
1 23 456 78910 1112131415 |
12345 1234 123 12 1 |
13579 1357 135 13 1 |
54321 5432 543 54 5 |
97531 9753 975 97 9 |
54321 4321 321 21 1 |
97531 7531 531 31 1 |
***** **** *** ** * |
123456789 1234567 12345 123 1 |
1 123 12345 1234567 123456789 |
* *** ***** ******* ********* |
1 121 12321 1234321 123454321 |
* *
* *
* * *
* * * * *
* * * |
* *
* *
* *
* ********* |
123456789 1234567 12345 123 1 |
********* ******* ***** *** * |
123454321 1234321 12321 121 1 |
********* *
* *
* *
* * |
12345 1234 123 12 1 |
A AB ABC ABCD ABCDE |
A BA CBA DCBA EDCBA |
A BB CCC DDDD EEEEE |
A BC DEF GHIJ KLMNO |
ABCDE ABCD ABC AB A |
EDCBA DCBA CBA BA A |
ABCDE FGHI JKL MN O |
A AB ABC ABCD ABCDE |
ABCDE ABCD ABC AB A |
A ABC ABCDE ABCDEFG ABCDEFGHI |
* *** ***** ******* ********* ******* ***** *** * |
* * * *
* *
* * * *
* *
* *
* * |
1 123 12345 1234567 123456789 1234567 12345 123 1 |
123456789 1234567 12345 123 1 123 12345 1234567 123456789 |
* * *
* *
* * * * * * *
* *
* * * |
·
Write a program to display prime between 1 to 100
·
Write a program to display perfect between 1 to
100
·
Write a program to display palindrome between
100 to 1000
·
Write a program to display Armstrong between 100
to 1000
·
Write a program to display table 1 to 10
Array
·
Write a program to accept the 5 no in array and
display
·
Write a program to accept the 5 no in array and
display sum
·
Write a program to accept the 5 no in array and
display sum of even or sum of odd
·
Write a program to accept the 5 no in array and
display max
·
Write a program to accept the 5 no in array and
display min
·
Write a program to accept the 5 no in array and
display reverse order
·
Write a program to accept the 5 no in array and
display second max
Matrix
·
Write a program to accept the 3 x 4 in matrix
and display
·
Write a program to accept the 3 x 4 in matrix
and display sum
·
Write a program to accept the 3 x 4 in matrix
and display sum of even or sum of odd
·
Write a program to accept the 3 x 4 in matrix
and display max
·
Write a program to accept the 3 x 4 in matrix
and display min
·
Write a program to accept the 3 x 4 in matrix
and display mirror matrix
·
Write a program to accept the 3 x 3 in matrix
and display left and right diagonal
·
Write a program to accept the 3 x 3 in matrix
and display sum of left and right diagonal
·
Write a program to accept the 3 x 3 in matrix
and display upper left diagonal
·
Write a program to accept the 3 x 3 in matrix
and display lower left diagonal
·
Write a program to accept the 3 x 3 in matrix
and display upper right diagonal
·
Write a program to accept the 3 x 3 in matrix
and display lower right diagonal
·
Write a program to accept the 3 x 3 in matrix
and display outer element
·
Write a program to accept the 3 x 4 in matrix
and display sum in row wise
·
Write a program to accept the 3 x 4 in matrix
and display sum of even and sum of odd in row wise
·
Write a program to accept the 3 x 4 in matrix
and display max in row wise
·
Write a program to accept the 3 x 4 in matrix
and display min in row wise
·
Write a program to accept the 3 x 4 in matrix
and display sum in column wise
·
Write a program to accept the 3 x 4 in matrix
and display sum of even and sum of odd in column wise
·
Write a program to accept the 3 x 4 in matrix
and display max in column wise
·
Write a program to accept the 3 x 4 in matrix
and display min in column wise
·
Write a program to accept the 3 x 3 in matrix
and transpose in another matrix
·
Write a program to accept the 3 x 3 in two diff
matrix and display sum in 3rd matrix
·
Write a program to accept the 3 x 3 in two diff
matrix and display multiplication in 3rd matrix
String
·
Write a program Accept the string and display
·
Write a program Accept the string and display in
character wise
·
Write a program Accept the string and count how
many character
·
Write a program Accept the string and count how
many characters are vowel or consonants
·
Write a program Accept the string and count how
many characters upper case, lower case, digit and extra character
·
Write a program Accept the string and count how
many space
·
Write a program Accept the string and count how
many words
·
Write a program Accept the string and convert
case
·
Write a program Accept the string and display in
reverse order
·
Write a program Accept the string and check string
is palindrome or not
·
Write a program Accept the string and count how
many time repeated “the”
·
Write a program Accept the full name and display
short name.
Function
·
Create function sum and accept the two no and display
sum.
·
Create function multi and accept the two no and
display multi.
·
Create function swap and accept the two no and
display swap.
·
Create function max and accept the two no and display
max.
·
Create function fact and accept the no and display
factorial.
·
Create function prime and accept the two no and check
no is prime or not.
·
Create function sum and accept the two no and
pass this number in given function and display sum.
·
Create function multi and accept the two no and
pass this number in given function and display multi.
·
Create function swap and accept the two no and
pass this number in given function and display swap.
·
Create function max and accept the two no and
pass this number in given function and display max.
·
Create function fact and accept the no and pass
this number in given function and display factorial.
·
Create function prime and accept the no and pass
this number in given function and check no is prime or not.
·
Create function sum and accept the 5 no’s in
array and pass this array in given function and display sum
·
Create function max and accept the 5 no’s in
array and pass this array in given function and display max
·
Create function sum and accept the two no and return
sum.
·
Create function multi and accept the two no and return
multi.
·
Create function max and accept the two no and return
max.
·
Create function fact and accept the no and return
factorial.
Post a Comment