write a program to display numbers from 10 to 1

numbers from 10 to 1 are displayed...


Select To use this code as it is.. select and copy paste this code into code.cpp file :)



  1. #include<iostream.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5. clrscr();
  6. for(int i=10;i>0;i--)
  7. //Coding by: Snehil Khanor
  8. //http://WapCPP.blogspot.com
  9. { cout<<i;
  10. cout<<"\n";
  11. }
  12. getch();
  13. }

Check out this stream