1 Float Numberl Number2 Scanf D D Numberl Number2 2 Int X 129 Y 323 Z Z X Y Printf The Sum Of D And D 1 (229.52 KiB) Viewed 21 times
identify and correct the syntax and logical errors in each of following.
1) float numberl, number2; scanf("%d%d", numberl, number2); 2) int x=129;y=323, z; z=x+y; Printf ("The sum of %d and %d is +y ,x,y,z); (3) int x=5, y=5,r; x*x + y*y= r; 4) if (counter > 0); average = total/counter; else printf ("cannot divide by zero"\n) :
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!