1. Write aprogram to find the largest number between two number using ternary operator. 
  2. Write aprogram, which take two values and print their sum.
  3. Program which take two values, and print their Multiplication.
  4. Write aprogram which take two values and print their sum of their square.
  5. Write aprogram which take three values and print Max. Value (using ternary operator).
  6. Write a program to convert kilogram into grams. 
  7. Write aprogram to convert inches into centimeters. 
  8. Write aprogram that accept basic salary of employee and compute the bonus @20 % ofbasic. Print Bonus and gross salary too. 
  9. Write a program which accept length  and breadth of a rectangle and print the Area and perimeter of it. 
  10.  Write aprogram which accept the arm of triangle and print the Area and perimeter of it.
  11. Write a program to read following numbers from yourkeyboards, round them to their nearest integer and print the result in integerformat. 37.7   50.123   -25.5649  -56.8877  123.0
  12. Write a Program that accept sale price and cost priceand find the profit and loss.
  13. Write a program to accept a four digit number and print the sum of first and last digit and product of mid digits.
  14. Write a program to accept the time in 24 hour formatand print message according to time like (good morning, good afternoon, goodevening, good night).
  15. Write a program to accept a number <10 print its inword eg. 1 to one , 2 to two.
  16. Write a program to accept a character and covert it upper case to lower case and lower to upper.
  17. Write a program to accept a character from user and process it like this. 
                  A) ifcharacter is alphabets then print next successive character e.g. a then b,   x then   y, x then a in C.   
                      B) if it is not alphabets then print thatcharacter as is…
Previous Post
Next Post