How to Solve It by Computers 4.2

#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
    int a[100];
    for(int i=0; i<=100; i++){
        a[i]=i;
        cout<<"a["<<a[i]<<"] := a["<<a[i]+1<<"]"<<endl;
    }
    return 0;
}

Comments