scanf gets input from the keyboard. So every time you call the function "scanf" you made the program ask for input. This is obviously NOT what you want. You want to get the radius once, and then perform the calculations, and then print the results (with the printf function)
0 comments:
Post a Comment