Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Character conversion to shaping
Character conversion to shaping
# include & ltstdio.h & gt

int main() {

char cs,cg; //define two char variables.

Int is ig, the result; //define two int variables.

scanf("%c%c ",& ampcs & amp; CG);

is = cs-' 0 '; //Characters are converted to plastic.

ig = CG-' 0 ';

Results = (is *10+ig) *10; //calculation results

printf("%d\n ",result); //output results

/* input 12 output 120*/

Returns 0;

}