Basic Programming
Additional Exercises


  1. Write a program to display your name, address and telephone number on the screen.

  2. Correct the mistakes in the following program, type it in and compile the program.
    
    // Example Program
       Week 1
       April 1997 
    //
    mAin(
    
            / display data to screen 
            cout << "Example Program\n";
            cout << 'for Introduction to Programming Class\n 
            cout >> " Autumn Term 1999/n";
            cout >> " Illustrates the basic components of C++\n;
    }
    


Back to Main Page for Lecture 1