#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 |
4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is array within structure?
Who is the main contributor in designing the c language after dennis ritchie?
#include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How many processes are created when running this program (including the initial one)? Explain ؟؟؟
write a c program to find reminder and quotient if one number is divided by other.to code this program don't use more than 2 variables
When was c language developed?
What is logical error?
What is data structure in c and its types?
wat is the meaning of c?
What are the advantages of the functions?
What is a volatile keyword in c?
Is main is a keyword in c?