Monkey Bananas
-
Upload
greg-hunkins -
Category
Documents
-
view
222 -
download
0
Transcript of Monkey Bananas
8/11/2019 Monkey Bananas
http://slidepdf.com/reader/full/monkey-bananas 2/3
Dr. Tolga Soyata. © U of R, Electrical and Computer Engineering, [email protected]
Program 1 (5 points): listnum.c
Write a program that displays numbers from -10 to +9 , their squares, and square roots in a nicelyformatted fashion. If the number is negative, it should write Complex in the square root column. You
have to use a for() loop, while() loop, or a do{} loop. Any one of these is acceptable.Program 1 grading tips : Nice formatting is 1 point, functionality is 3 points , careful “casting” andtechnical quality as well as careful bracketing the statements is 1 point. Using a bunch of printf()statements to create this output will get you zero points !!! You have to do it with a loop !!!
Program 1 Expected Output: