#include<stdio.h>
main()
{int i=1;j=1;
for(;;)
{if(i>5)
break;
else
j+=1;
printf("\n%d",j)
i+=j;
}
}

Answer Posted / vedansh

2
3

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

684


Describe the steps to insert data into a singly linked list.

612


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1586


What is calloc() function?

612


What are the two forms of #include directive?

630






What is meant by type specifiers?

650


i want to know the procedure of qualcomm for getting a job through offcampus

1919


How can a program be made to print the name of a source file where an error occurs?

719


What is string function c?

558


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

1724


What are the properties of union in c?

577


Why do we use int main?

596


Can we declare variables anywhere in c?

563


Is linux written in c?

590


What is echo in c programming?

541