c program for number of times while loop condition is tested

#include
int main()
{
int i=0,j=0;
while (i < printf("%dhello\n",i+1))
i++;

do
j++;
while (j <= printf("%dhello\n",j));

}

output:

1hello
2hello
3hello
4hello
5hello
6hello
7hello
8hello
1hello
2hello
3hello
4hello
5hello
6hello
7hello
8hello

Advertisements

2 thoughts on “c program for number of times while loop condition is tested

  1. Someone essentially help to make seriously articles I would state. This is the very first time I frequented your website page and thus far? I amazed with the research you made to make this particular publish extraordinary. Fantastic job!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s