Manual of computer studies – XII from Board Of Secondary Education Karachi (2007-08)
C-LANGUAGE
1. Write a program, which prints a Text of four lines consisting of characters, integer
values and floating point values using printf statement. Taking input from the
keyboard using scanf statement.
2. Write a program that reads and prints the data using Escape sequence, (asking the
name, age, height and gender of a student).
3. Write a program, which uses arithmetical operators to calculate the area of a triangle,
volume of a sphere, etc.
5. Write a program, which uses “while” loop and nested while loop, (use “for” loop and
continue the process in “While” satisfying the given condition).
10. Write a program that calculate square root without using sqrt ( ) function of a given
no.
11. Write a. Program that calculate power of base without using power function by taking
input both.
13. Write a program using for loop to print usual printing characters corresponding to 32
to 127 ASCII code.
15. Write a program using nested for loop to print the following pattern.
*
**
***
****
*****
DATABASE
MS access:
Compiled By