Chapter 01 Programming Challenges

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Programming Challenges

Sum of Two Numbers

Write a program that stores the integers 50 and 100 in variables and stores the sum
of these two in a variable named total. Display the total on the screen.

Personal Information
Write a program that displays the following information, each on a separate line:
Your name
Your address, with city, state, and zip code
Your telephone number
Your college major
Use only a single cout statement to display all of this information.

You might also like