Computer Science, asked by kelsss, 4 months ago

write an algorithm the product of any two numbers and display the result
STEP BY STEP PLEASE​

Answers

Answered by nidaeamann
0

Explanation:

The program written below is in C language;

#include<stdio.h>

int main(){

int num1, num2, num3

 printf("Enter the first number\n");

scanf("%i",&num1);

printf("Enter the second number\n");

scanf("%i",&num2);

num3 = num1 x num2

print(The product of two input numbers is "%i",&num3)    

return 0;

}

In the program, the algorithm works by first taking the inputs of two numbers. Then they are multiplied and result is stored in another variable and finally that variable value is printed out

Similar questions