[go: up one dir, main page]

0% found this document useful (0 votes)
3 views2 pages

Lecture 2 Exercise

Uploaded by

younis77zl7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Lecture 2 Exercise

Uploaded by

younis77zl7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Lecture 2 Exercise

Write a program in C++ to print the \1


.sum of two numbers

Write a program in C++ to print a welcome to c++ class \2


.in a separate line
*:The output

Print a welcome text in a separate line :


----------------------------------------------
Welcome to

c++ class

3\ write a C++ program to ask user to enter his age then


print this letter:

Your age is 20 years.

. 4\ Write a C++ program to ask user to enter his name,


age, tall Then print them as:

Enter Your Name


Ahmed
Enter Your Age
30
Enter Your Tall :
19,6
Your Name Is :Ahmed
30 Years Old
Your Tall Is 19Meters
5\ Write a program in C++ to Swap Values of Two
Variables?

You might also like