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
#include <iostream>
#include <string>
using namespace std;
int main()
{
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;
}
return 0;
}
Comments
Leave a comment