Next: Basic C Programming Up: The C Program Previous: History of C

Exercises

  1. Enter, compile and run the following program:

    
    	main()
    
    	{ int i;
    
    	   printf(`\t Number \t\t Square of Number\n\n');
    
    	   for (i=0; i<=25;++i)
                printf(`\t %d \t\t\t %d \n',i,i*i);
    
    	}

  2. Write C a program to print your name and address on the screen.

    ">


Dave.Marshall@cm.cf.ac.uk
Wed Sep 14 10:06:31 BST 1994