Computer Science, asked by sji470485, 1 month ago

Perform all the arithmetic operations by accepting two numbers from the

user and display the output for all.

( Addition, subtraction ,multiplication ,division,floor division, modulus,

power)​

Attachments:

Answers

Answered by shaheenarshi427
0

Explanation:

This will be called from a main program that calls GET_NUM for the two numbers to be entered, and you need to implement GET_NUM and PRINT_NUM for yourself, or have them in a library, and there may be a few bugs (IMUL or just MUL?), but this should be enough to get you started with homework or otherwise.

Note that for 32 bits x86 it would be EAX etc, and for 64-bits perhaps even RAX.

Answered by yashsaxena8055
0

Answer:

int main()

{

int a,b;

scanf("%d%d",&a,&b);

printf("addition of two numbers is = %d",a+b);

printf("subtraction of two numbers is = %d",b-a);

printf("multiplication of two numbers is = %d",a*b);

printf("Division of two numbers is =%d",a/b);

printf+"Modulus of two numbers is = %d",a%b);

return 0;

}

Similar questions