Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What is the use of %d%d in c language printf? Why can't I succeed without entering %d%d?
What is the use of %d%d in c language printf? Why can't I succeed without entering %d%d?
Main() /* main function name */

{

int a,b; /* Define two variables A and b*/

Scanf("%d%d ",&i, & b);

/* Receive two integer values, %d represents integer decimal value,&; A represents the storage address of variable a */

If (a & gtB) /* If a & gtb*/

{

printf(" % d & gt; %d ",a,b)/* output a & gt; B corresponding value */

}

Else /* Otherwise */

{

printf(" % d & gt; %d ",b,a)/* output b & gt; Corresponding value */

}

getch(); /* Capture characters so that you can see the running results */

}