Tuesday, November 08, 2005

Past Actions...

















I learned the first C lesson from suda :-)
part of it.....

#include "stdio.h"
main()
{
int i;
char j;
printf ("Enter any number...");
scanf ("%d", &i);

switch(i)
{
case 1:
printf("\nEnter any alphabet...");
fflush (stdin);
scanf ("%c", &j);

switch(j)
{
case 'a':
printf("\nIf you love something...");
goto out;
case 'b':
printf("\nSet it free...");
break;
}
break;
case 2:
printf("\nIf it returns, it's yours...");
}
out:
printf("\nElse it was never meant to be.");
}