#define _CRT_SECURE_NO_WARNINGS   //makes scanf work
#include <stdio.h>

void main()
{
	int theNumber;
	float thePrice;
	char theInitial;
	char theName[30];

	printf("Enter your number: ");
	scanf("%d", &theNumber);

	printf("Enter your price: ");
	scanf("%f", &thePrice);
	
	printf("Enter your initial: ");
	scanf(" %c", &theInitial);  //extra space before %c on character

	printf("Enter your name: ");
	scanf("%s", &theName);

	printf("Welcome, %c %s your number is %d and your price is %.2f\n\n", theInitial, theName, theNumber, thePrice);
	
	printf("\n\nEnd of program\n\n");
}
