You are on page 1of 1

Fundamentals of Programming

Lab#2
____________________________________________________________
Note: Create a word file in which all these questions, their code and their outputs must be
pasted.

Q#1: Write a program that displays “Run, spot, run” she said on the screen.

Q#2: Input temperature in Fahrenheit, convert it into Celsius and display it on screen.

Q#3: Input radius from user and find the area of circle. You have to declare PI as a
constant variable.

Q#4: Use setw manipulator to display city name and its population

Q#5: Enter 3 numbers from console and find the sum of entered numbers and display it
on screen. You must not declare more than 2 variables for finding the sum.

Q#6: Input a number from user and find and display square root of that variable.

You might also like