1. Using scanf to read the limits for a loop
Write a program that asks the users for two intergers, and then uses these numbers as the limits for a for loop. The program simply counts between the two values, and displays the current number on the screen.
2. Adding a function
If we consider the value displayed in (1) above to be an angle in degrees, write a function that convert this value to radians and then displays this along side the value in degrees. To make use of pi, include "math.h" within your code, you can then use the pre-defined constant M_PI, M_2PI...etc
2007-10-20
12:15:51
·
4 answers
·
asked by
VeVe
1
in
Computers & Internet
➔ Programming & Design