Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Who can help me analyze the answer of this C program? What does each sentence stand for?
Who can help me analyze the answer of this C program? What does each sentence stand for?
# include & ltstdio.h & gt

Master ()

{

Int number, a;

//Define an integer and a.

Scanf("%d ",&);

//Read the integer entered by the keyboard into number, that is, set the value of number as the integer entered by the keyboard.

Printf("%d\n ",number);

//Print out the numbers on the screen, and the output is 123.

A = number%10;

//NUMBER is the remainder of 10, which is 3, and a = 3.

printf("%d ",a);

//Print one, which is the first 3 of 32 1. Because you didn't break the line, 32 1 is in a row.

Number = number/10;

//Assign $ number divided by 10, because you define $ number as an integer, so $ NUMBER = 12.

A = number%10;

//A assigns the number (12) to the remainder of 10, with a = 2.

printf("%d ",a);

//Print 2 in a, 32 1

Number = number/10;

//NUMBER (1) = number (12) divided by 10, and number is an integer, so now it is equal to1.

Printf("%d\n ",number);

Print the number and wrap it, that is, 1 and wrap it in 32 1.

}