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 /
            printf("Example Program\n";
            printf('for Introduction to Programming Class\n )
            printf(" Autumn Term 1998/n");
            print(" Illustrates the basic components of C\n);
    }
    


Back to Main Page for Lecture 1