100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Summary A program that asks the users name, surname and age and displays them R51,00   Add to cart

Summary

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

 2 views  0 purchase

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

Preview 1 out of 1  pages

  • February 13, 2024
  • 1
  • 2023/2024
  • Summary
All documents for this subject (31)
avatar-seller
giftmotaung964
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;
}

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller giftmotaung964. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R51,00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67474 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R51,00
  • (0)
  Buy now