input integer in array and find total in C program

//input 10 integer and find total
#include<stdio.h>
#include<conio.h>
main()
{
int num[10],i,total=0;
for(i=0;i<10;i++)
{
printf(“input interger number:”);
scanf(“%d”,&num[i]);

}
for(i=0;i<10;i++)
{
total=total+num[i];
}
printf(“Total of 10 integer numbers=%d”,total);
}

Leave a Reply

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

Enter Captcha Here : *

Reload Image