I like to learn new technologies. These posts are for my own reference (I have habit of forgetting). If anybody finds these posts useful, then it will surely make me HaPpY.
Tuesday, June 19, 2012
Simple array program
#include <iostream> using namespace std;
int main() { int numbers[10]; int i;
for (i=0; i<10; i++) numbers[i] = i + 1;
for (i=0; i<10; i++) cout << i << ": " << numbers[i] << endl;
No comments:
Post a Comment