Basic Statements

  • Write a program to print the square of a number.
  • Write a program which read the mass and acceleration of a body, program will find the Force of a body.
  • Write a program which read the price of two product with quantity, find total bill and print it.
  • Write a program which read your age in month and program will convert it into months, weeks, days.
  • Write a program which read initial and final velocity of a body, program will calculate distance covered by the body.

    Hint: 2gs=Vf^2-Vi^2
  • Write a program which read the total number of pages in a book and number of the pages read by the student in 2 days. Find the remaining pages in the book and print it.
  • Write a program which read the name and total number of lectures attend by the student and total number of lectures delivered by the teacher. Find the percentage of lecture attended and print it.
  • Write a program which read the currency note of 5,10 and 50 you have, calculate the total amount and print it.
  • ​Write a program which read the price of two product with quantity, find the discount on first product at the rate of 3% and on second product at the rate of 7%. Calculate the total payable bill and print it.

No comments

Powered by Blogger.