answersLogoWhite

0

#include<iostream>

#include<string>

int main()

{

using namespace std;

std::cout << "Enter your full name: ";

std::string name;

std::getline (std::cin, name);

std::cout << "Your full name is: " << name << std::endl;

}

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

How do you write a c program to prints name?

Write a c program that reads your first name and surname when you enter them. Each part of your name should not be more than 12 characters. Finally, have the program display your full name.


How do we write a program to print your name age address using read data statement in QBASIC?

In QBASIC, you can use the INPUT statement to read data for your name, age, and address. Here's a simple program example: DIM name AS STRING DIM age AS INTEGER DIM address AS STRING INPUT &quot;Enter your name: &quot;, name INPUT &quot;Enter your age: &quot;, age INPUT &quot;Enter your address: &quot;, address PRINT &quot;Name: &quot;; name PRINT &quot;Age: &quot;; age PRINT &quot;Address: &quot;; address This program prompts the user to enter their name, age, and address, then prints the collected information.


Can a programmer change a code line and make it a new program?

Yes. I can write a python program that asks for your name and then prints "Hi, name, good to meet you." by writing the following program.#!/usr/bin/pythonname = input("What is your name? ")print("Hi", name + "," , "good to meet you.")If I change the third line toprint("Hi", name + ",", "good to meet you. Your name is", len(name), "letters long.")It will say "Hi name, good to meet you. Your name is xletters long.", thus making it a different program.


Write your name and address in c?

int main (void) { puts ("Your name and address"); return 0; }


How to write a program to accept the user name and password and then shop this is your Password?

you cant

Related Questions

How do you write a c program to prints name?

Write a c program that reads your first name and surname when you enter them. Each part of your name should not be more than 12 characters. Finally, have the program display your full name.


How do we write a program to print your name age address using read data statement in QBASIC?

In QBASIC, you can use the INPUT statement to read data for your name, age, and address. Here's a simple program example: DIM name AS STRING DIM age AS INTEGER DIM address AS STRING INPUT &quot;Enter your name: &quot;, name INPUT &quot;Enter your age: &quot;, age INPUT &quot;Enter your address: &quot;, address PRINT &quot;Name: &quot;; name PRINT &quot;Age: &quot;; age PRINT &quot;Address: &quot;; address This program prompts the user to enter their name, age, and address, then prints the collected information.


Can a programmer change a code line and make it a new program?

Yes. I can write a python program that asks for your name and then prints "Hi, name, good to meet you." by writing the following program.#!/usr/bin/pythonname = input("What is your name? ")print("Hi", name + "," , "good to meet you.")If I change the third line toprint("Hi", name + ",", "good to meet you. Your name is", len(name), "letters long.")It will say "Hi name, good to meet you. Your name is xletters long.", thus making it a different program.


How do you write mail?

it is kind of like a formal letter first you write the address date then the person's address then you write your greeting and your body.On the body remember the first to write your name then tell why you are writing them that letter.Give reasons why you admire them you can often get a write back but you need to write your address letter format: your address date: (fan mail address) celebertie's address greeting and the body: hi my name is Ashley(sample name)i love you and so on...


Write your name and address in c?

int main (void) { puts ("Your name and address"); return 0; }


How to address envelope both dentists?

To address an envelope, write the recipient's name, and, beneath it, address.


Write a program to display the name of days when a user enters a number?

write a program to display your name age class schoolname e-mail 2hobby based on choice


How should you write a letter to Hong Kong you don't know how to write the address?

just write it like a normal address simple, if you don't know how to write a normal address here is how: name address city, state zip/postal code


What is the meaning of superscribe?

To write or engrave (a name, address, inscription, or the like) on the top or surface; to write a name, address, or the like, on the outside or cover of (anything); as, to superscribe a letter.


Write a program to display your name on computer screen?

Faisal


When sending mail to someone who doesn't live at that address but is visiting whom do I put in care of?

There are two ways to address mail to someone who is visiting another address. One, you list your friend's name first in the address section of the envelope. Below your friend's name, write 'in care of' and then give the name of the person who actually lives at that address. Two, on the first line in the address section write the name of the person who actually lives at that address. In the second line, write 'ATTN' and then give your friend's name.


What address should you when you write a letter of complaint to target?

your name