There is a simple program to print 1 to 10 nos. bu using for lopp. But the console closes before. I a using tubo c++ 3.0. I also added getch() but i will have to press key again and again to print 10 nos.