hammadmughal2019 hammadmughal2019
  • 26-01-2021
  • Computers and Technology
contestada

write a program that display your name c++

Respuesta :

QuartzWarrior
QuartzWarrior QuartzWarrior
  • 26-01-2021

Answer:

#include <iostream>

#include <string>

int main() {

std::string name;

std::cout << "Please enter a name: ";

std::cin >> name;

std::cout << "Hello " << name<<"!";

}

Explanation:

Asks for your name and adds Hello {name}!

Answer Link

Otras preguntas

solve simultaneous equation....4x-5y and 2x+y=4 ...can you show some steps​
What are the correct answers NEED ANSWER ASAP PLEASE ​
The effects caused by Climate change on the Environment,human and Economy of south Africa. ​
Which elements are common to all four of the base nucleotides found in DNA? Select all that apply. nitrogen sodium carbon iron
Find the surface area of the cylinder. Round your answer to the nearest tenth.
need help with writing a email cover letter for a job application. It has to be three to five paragraphs sentence and 275 words​
Which of the following is NOT true A magnet can attract copper pennies. A magnet can stick to another magnet. A magnet can push away other magnets. A magnet can
20 POINTS TO WHO HELPS ME SOLVE THIS QUESTION
T or F: The American Bar Association's 2000 report on the progress of minorities in the legal profession concluded that minority entry into the profession had s
the graph of f(x) = x2 was transformed to create a graph g(x) =f(x)−3. which statement about the graphs is true? the vertex of the graph of g is 3 units below t