Skip Navigation
 

In Class Exercises

Exercise 1

New Page 1
  1. Write a C++ program that displays your name on the output screen. Save the file as Name.cpp.
  2. Write a C++ program that displays your name, street address and parish on three separate lines on the screen. Save the file as NameAndAddresses.cpp.
  3. Write a C++ program that displays the following pattern on the screen:

                        *

                      *  *

                   *    *   *

                      *  *

                        *

Save the file as diamond.cpp.

 

 

 

   

 

 

 
 
« go back|print