help

From the top of my mind, try pasting it in main() and then run
Code:
for(int i=1;i<=6;i++)
{
for(int j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}

I would suggest you understand the code first before running it.
 
hammerhead said:
I do not understand, please clarify further.

what our maam told us is to use two if condition to get the output not to use any loop:S wtf

one more thing to to print odd number from 1 to 100 without using any loop
 
one more thing to to print odd number from 1 to 100 without using any loop

recursive function

main()

{

func(1);

}

func(int a)

{

if(a<100) {print (a);a+=2; func(a);}

}

similar solution for the other problem...ill let you figure that out yourself (you can techboi to do your homework also :p )
 
Back
Top