Page 1 of 1

Jasmine is trying to write a code for her project but it would not compile or the output is out of expectation. Identify

Posted: Fri May 20, 2022 11:12 am
by answerhappygod
Jasmine Is Trying To Write A Code For Her Project But It Would Not Compile Or The Output Is Out Of Expectation Identify 1
Jasmine Is Trying To Write A Code For Her Project But It Would Not Compile Or The Output Is Out Of Expectation Identify 1 (35.27 KiB) Viewed 35 times
Jasmine is trying to write a code for her project but it would not compile or the output is out of expectation. Identify at least seven (7) syntax errors with line number stated and suggest the correct statement [7 marks] 1. include <stdio.h> 2. int main() 3. ( 4. integer radius = 0; 5. float area = 0, perimeter = 0; 6. do 7. 8. 9. { printf("Please key in your radius of a circle in centimeter: "); scanf(%d, radius); } while (radius < 0) 10. 11. area = 3.142 * radius * radius; perimeter = 2 * 3.142 * radius; 12. 13. printf("The area = %d cm2 and the perimeter = %d cm./n", Area, Perimeter); 14. return 0;