BSCS Program C++
BSCS Program C++
Q.3 Write a program that input radius computes the area of circle.
Q.4 illustrates a program that computes and displays the area of
square.
Q.5 carves a program that adds two floating point values and
displays the sum on the screen.
Q.6 Write a program that input radius computes the area of circle
and circumference of the circle.
Q.7 Write a program that inputs four-digit number and display it in
reverse order.
Q.8 write a program that inputs the basic salary of an employee and
calculates the following allowances on the basis of basic salary:
● 25 % travelling allowance
● 15 % medical allowance
● 45 % house rent allowance
● 34 % other allowance
It calculates the gross salary and display on the screen.
Q.9 write a program that inputs even and odd numbers. It
multiplies the even number with 5 and odd number with 3, adds
them and subtracts the result from 1000, and then displays the
difference.
Q.10 write a program that inputs two numbers and interchanges the
values of two variables.