// C++ Code Example:
// Counting From 0 To 1000
#include <stdlib.h>
using namespace std;
void main()
{
// declare a variable
int i;
for(i= 0; i < 1001; i++)
cout << i << endl;
}
(It's been a while since I've programed in C++, but this should be close)
|