Calculating Radius, Diameter, Circumference , Area and Length of a Circle
Write a program that asks a user to input the radius and degree of a circle, the program reads it in and calculates: The radius, Diameter, Circumference, Area and Length of a circle. SOLUTION #include<stdio.h> #include<stdlib.h> /*function main begins program execution */ int main( void ) { /*Initialization phase */ int radius ; // radius to be entered by the user int degree ; // degree to be entered by the user /*Processing phase * / printf ( "Insert radius and degree of the circle:" ); /*Prompting for input */ scanf ( "%d%d" , & radius , & degree ); /*reading radius and degree from user */ printf ("Radius is:%f\n" , radius*1.0); /*displaying result printf( "Diameter is:%f\n" , radius*2.0); /*displaying result ...