Good Programming Practice in Dev C++
Wednesday, 2 May 2012
Lecture 55
Lecture 55
// Loop For
#include <iostream>
#include <conio.h>
using namespace std;
main ()
{
int i;
cout<<"0 to 9 number: ";
for(i=0;i<10;i+=1)
cout<<i;
getch();
return 0;
}
Code view in dev compiler:
Compile the program Ctrl+F9
Run program Ctrl+F10
Newer Post
Older Post
Home