Basics

  1. Input price of laptop, mobile and book and findout total price and average price.
  2. Input the marks of Phy, Chem, Maths and find out the total & percentage.
  3. Program for volume of Cylinder.
    Formula : vol=3.14*r*r*h
  4. Program for volume of Cone.
    Formula : vol=3.14*r*r*h/3
  5. Program for area of square and circle in a program.
    Formula : sarea=s*s
    carea=3.14*r*r
  6. Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into Centigrade degrees.
    Formula : c=(f-32)*5/9
  7. Two numbers are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D.
  8. Input Time in MINUTES and convert it in to valid hour & Minutes.
  9. If a five digit number is input through the keyboard , write a program to calculate the sum of its digits.
  10. If a five digit number is input through the keyboard , write a program to reverse the number.
  11. If a six digit number is input through the keyboard , write a program to obtain the sum of the first and last digit of this number.