Harinis home work for third day is to multiplication of two numbers, help Harini to solve the problem
Test Case 1
Input (stdin)
7.2
1.5
Expected Output
The Multiplication of two number is:10.799999
The Multiplication of two number is:10.80
Test Case 2
Input (stdin)
5.1
2.3
Expected Output
The Multiplication of two number is:11.730000
The Multiplication of two number is:11.73
Program
#include <stdio.h>
int main()
{
float a,b,c;
scanf("%f%f",&a,&b);
c=a*b;
printf("The Multiplication of two number is:%f\n",c);
printf("The Multiplication of two number is:%.2f\n",c);
return 0;
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.