#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 5 data types?
What are preprocessor directives in c?
progrem to generate the following series 1 12 123 1234 12345
Why is C language being considered a middle level language?
using for loop sum 2 number of any 4 digit number in c language
#include<string.h> void main() { String s1[]={"swathi"}; string s2[]={"maddimsetti"}; s1[]=s[]; printf("%s",s1[]); }
Write a program to print ASCII code for a given digit.
Explain the properties of union.
Add Two Numbers Without Using the Addition Operator
What is scanf () in c?
What is the use of putchar function?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.