Create 4 variables and assign each one to the following values:
the letters 'M', 'V', and 'P' on the first three variables
the number 10 on the fourth variable
You may name the variable anything you want as long as it follows proper naming convention.
Using the variables you've created, print the cheer message like the one displayed in the output sample below. The first line contains the cheer message for the MVP, and the second line containing a cheer message with the MVP’s jersey number, all in uppercase.
#include<iostream>
using namespace std;
int main(int argc, char *argv[]){
char m='M';
char v='V';
char p='P';
int num =10;
cout<<"You are welcome "<<m<<v<<p<<endl;
cout<<"YOU ARE WELCOME "<<m<<v<<p <<" NUMBER "<<num;}
Comments
Leave a comment