0% found this document useful (0 votes)
26 views

Chapter 01 Programming Challenges

The document contains two programming challenges - writing a program to store and display the sum of 50 and 100, and writing a program to display personal information like name, address, phone number and major on separate lines using a single cout statement.

Uploaded by

Cali Cali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Chapter 01 Programming Challenges

The document contains two programming challenges - writing a program to store and display the sum of 50 and 100, and writing a program to display personal information like name, address, phone number and major on separate lines using a single cout statement.

Uploaded by

Cali Cali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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