Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to add, subtract, multiply and divide between 16 in C language?
How to add, subtract, multiply and divide between 16 in C language?
You can refer to the following code:

int a,b;

Scanf("%x%x ",& a, & b);

printf("%x\n%x\n ",a+b,a-b);

Input: 9 7

Output:

10

2

Extended data:

C language fmod () function: find the remainder of x/y (for floating-point numbers)

C language acos () function: finding the arccosine

Asin () Function in C Language: Finding Arcsine

Atan () function in C language: finding arc tangent

Atan2 () Function in C Language: Finding the Arctangent of x/y

If: conditional statement, without semicolon. (Introduction to K & ampr Period)

Else: The negative branch of a conditional statement (used with if). (Introduction to K & ampr Period)

Switch: switch statement (multi-branch statement). (Introduction to K & ampr Period)

Baidu encyclopedia -c language