Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - The programming problem needs to input data from the keyboard, so the integer variables A = 20 1 1 and b = 2012; Character variable c
The programming problem needs to input data from the keyboard, so the integer variables A = 20 1 1 and b = 2012; Character variable c
Completed in C language, A and B are plastic variables, and C is a character variable, which are input and then output respectively. Copy the source code.

# include & ltstdio.h & gt

# include & ltstdlib.h & gt

int? Master ()

{

int? a;

int? b;

Charles? c;

Printf ("Please? Input? Numbers? a:\ n ");

scanf("%d ",& ampa);

Printf ("Please? Input? Numbers? b:\ n ");

scanf("%d ",& ampb);

Printf ("Please? Input? Character? c:\ n ");

getchar();

scanf("%c ",& ampc);

printf("\na? Yes: %d\n ",a);

printf("b? Yes: %d\n ",b);

printf("c? Yes: %c\n ",c);

Return? 0;

The running results are as follows. You can ask me if you don't understand anything.