Saturday, January 21, 2012

Exam (Fucntions)

1. Create a program that will get the area of a triangle, your program is composed of 3 functions, first input, 2nd is the computation, 3rd will display the output.

2. Create a program that will get the circumference and diameter of a circle, your program is composed of 3 functions, first is the input, second is the computation, third display the output.

pi = 3.14

formula : C = pi * d
D = 2 * r

3. Write a C program that will calculate the sum of squares of numbers from 1 to N?

4. Create a program that will display the even numbers of the inputted number.





No comments:

Followers

Visitor

free counters

FEEDJIT Live Traffic Feed