Wednesday, 9 April 2014
write c++ program that display counting from 10 to 1
Do you like this story?
1 2 3 4 5 6 7 8 9 10 11 12 |
#include<iostream.h>
#include<conio.h>
void main(){
int n;
n=10;
while(n>=1)
{
cout<<n<<endl;
n=n-1;
}
getch();
}
|
OUTPUT