write a program that prompts the user to enter the age of a customer.if the age is younger than 15 then ask the user to enter the name of the customer and notify them by name that they qualify a free toy
Expert's answer
#include<iostream>#include<string>usingnamespace std;
intmain(){
int age;
string name;
cout<<"Age: ";
cin>>age;
if(age<15){
cout<<"Name: ";
cin>>name;
cout<<name<< "! You are qualify to a free toy."<<endl;
}
return0;
}
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot