Answer to Question #320997 in C for dancing

Question #320997
  1. Create 4 variables and assign each one to the following values:
  2. the letters M, V, and P on the first three variables
  3. the number 10 on the fourth variable
  4. You may name the variable anything you want as long as it follows proper naming convention.
  5. Using the variables you've created, print the cheer message like the one displayed in the sample output. 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.
  6. Make use of placeholders to achieve the same result as that of the sample output.
  7. An initial code with the 2 printf()'s needed for this problem is already provided for you. Just fill in the blanks.
1
Expert's answer
2022-03-31T19:48:35-0400
#include <stdio.h>

int main()
{
	char m = 'M';
	char v = 'V';
	char p = 'P';
	int number = 10;

	printf("You are welcome %c%c%c \n", m, v, p);
	printf("YOU ARE WELCOME %c%c%c NUMBER %d", m, v, p, number);

	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS