What is the output of the following?
#include stdio.h
int main()
{
int i, n, sum = 0;
for(i=1; i = 5; ++i)
{
printf("Enter a n%d: ",i);
scanf("%d",&n);
if(n 6)
{
break;
}
sum += n;
}
printf("Sum = %d",sum);
return 0;
}

Posted on by