Problem : 18


#include <stdio.h>

int While (int k)
{
	return k++;
}


int FOR (int n, int m, int k)
{
	return While (k * (++m) *n);
}


int main ()
{
    int i = 5, sum = 0, j;
	for(j = 0; j< FOR(i = 10, i > 5, i++); j++, sum += j);
	printf("%d\n",j);
	return 0;
}


// What's the output ?
// Source : http://www.youngprogrammer.com/
Advertisements

One thought on “Problem : 18

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