Write a program to do multiplication of two values. in plsql
Answers
Answered by
1
Answer:
Program to Multiply Two Numbers
printf("Enter two numbers: "); scanf("%lf %lf", &a, &b); Then, the product of a and b is evaluated and the result is stored in product . product = a * b; Finally, product is displayed on the screen using printf()
Attachments:
Answered by
0
Answer:
The program code is demonstrated in attached image.
Explanation:
i) To write a program to do multiplication of two values, first step is to define two numbers to be multiplied as 'n1' and 'n2', and their product as 'p'.
ii) Define the input command as 'Enter two numbers'.
iii) Use scan function to read the input as digits.
iv) Define the value of 'p' as the product of these two input values.
v) In the last step, give output using print function.
#SPJ3
Attachments:
Similar questions