hi i need some help in this program.. using only 1 for loop..
#include<stdio.h>
void main()
{
int n;
clrscr();
for (n=1; n<=10; n--)
{
printf("\n %d",n);
}
getch();
}
*the output of this program is"
1
2
3
4
5
6
7
8
9
10
but i need to make it like this:
1 2
3 4
5 6
7 8
9 10