Develop an algorithm and prepare a flowchart that prints output for subtraction and multiplication of two input numbers.
Answers
Answered by
0
the answer is given via photos. Hope it helps. If helped, then pls mark brainliest
Attachments:
Answered by
0
subtraction and multiplication of two input numbers.
Explanation:
#include <stdio.h>
int main()
{
int num1, num2;
int sub, mult;
printf("Input any two numbers separated by comma : ");
scanf("%d,%d", &num1, &num2);
sub = num1 - num2;
mult = num1 * num2;
printf("The difference of the given numbers : %d\n", sub);
printf("The product of the given numbers : %d\n", mult);
return 0;
}
1. start.
2. Take two numbers from users as num1 and num2.
3. Perform substraction and multiplication.
4. Print the result.
5.stop.
Similar questions