You are on page 1of 1

Write a program using a loop that generates the following output:

1 10
2 9
3 8
4 7
5 6
6 5
7 4
8 3
9 2
10 1
============================================
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();

int a,b;

for(a=1;a<=10;a++)
{
cout<<"\n"<<a<<"\t"<<11-a;
}

getch();
}

http://www.ravianeducation.blogspot.com
FARHAN: 03008855006