100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Summary

Summary A program that asks the users name, surname and age and displays them

Rating
-
Sold
-
Pages
1
Uploaded on
13-02-2024
Written in
2023/2024

The document shows the program that asks users name, surname and age and displays them on the screen

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
February 13, 2024
Number of pages
1
Written in
2023/2024
Type
Summary

Subjects

Content preview

A program that asks the users name, surname and age and displays them.
//A program that asks the users name, surname and age and displays them
#include <iostream>
using namespace std;

int main ()
{
string name;//stores name
string surname;//stores surname
int age;// stores age

//Asks users name, surname and age
cout << "Please enter your name: ";
cin >> name;//takes the name
cout << "Please enter your surname: ";
cin >> surname;//takes the surname
cout << "Please enter your age: ";
cin >> age;//takes the age

cout << endl;//creates the space

cout << "Name: " << name << endl;//displays the name
cout << "Surname: " << surname << endl;//displays the surname
cout << "Age: " << age << endl;//displays the age

return 0;
}
$3.29
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
giftmotaung964

Get to know the seller

Seller avatar
giftmotaung964 University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
13
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions