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

Water can be heated above its boiling point without boiling. what is this process called?
what does a nucleotide consist of? a.nitrogenous bases and sugar b.a polymer of nitrogenous bases c. sugar and phosphates d.a nitrogenous base a sugar and a pho
Xkslgmvkdkskfnfjndngkckgkdks
Which of the following was not an allied power? a. serbia b. france c. united states d. germany
the square root of 36y^3 =
What is 1.2 in fraction form?
The Federal Art Project set a precedent for (1 point) A. increased government support of radicals. B. federal funding of the arts and artists. C. free theater
In "the prologue'' of chaucers's the canterbury tales, what tone is used in the description of the oxford cleric? a. bemused b. approving c. compassionate
find the gcf of the terms of the polynomial. 20x^4y 25x^2
One effect of the Alien and Sedition Acts was to A. limit the power of the Democratic Republican Party. B. prevent juries from acquitting innocent immigran