Course Solutions Uncategorized (Solved) : Main Problem Code Include Int Main Void Int Number Sum 0 0 Q29622748 . . . .

(Solved) : Main Problem Code Include Int Main Void Int Number Sum 0 0 Q29622748 . . . .

 

What is the main problem in this code?

#include <stdio.h>

int main(void)

{

int i, Number, Sum=0;

  

for(i=0; i<=10; i–)

{

printf(“Enter number:”);

scanf(“%d”, &Number);

Sum+=Number;

}

printf(“Sum=%dn”, Sum);

return 0;

}

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 2 Create Table Ships S Numb S Name Tonnage Row Type Objects Object Method Compare Ships To Q32562770 . . . .(Solved) : 2 Create Table Ships S Numb S Name Tonnage Row Type Objects Object Method Compare Ships To Q32562770 . . . .

<br/><img src="../../../media.cheggcdn.com/media/44e/44e1cc06-6b31-46f2-bc89-b389976cc42d/image.png" alt="2. Create table SHIPS (S NUMB, S NAME, TONNAGE) with row type objects and object method, which compare ships tonnage. Please write object SOL query, using created object