#include<stdio.h>
main()
{int i=1;j=1;
for(;;)
{if(i>5)
break;
else
j+=1;
printf("\n%d",j)
i+=j;
}
}
Answers were Sorted based on User's Feedback
Answer / sourav basu
1 1
print statement is printing 'j', not 'i'. and the for loop works on the basis of value of 'i'..
tested and verified answer on gcc compiler
Is This Answer Correct ? | 2 Yes | 5 No |
What are the functions to open and close file in c language?
What is array of structure in c?
Explain Function Pointer?
How many bytes are occupied by near, far and huge pointers (dos)?
a program that can input number of records and can view it again the record
wat are the two methods for swapping two numbers without using temp variable??
What is function and its example?
please give code for this 1 2 4 7 11 16
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What is a ternary operator in c?
SRUCTURE PROGRAMMING
What does emoji p mean?