Write a Program to find out Multiplication , Division and Subtraction of two numbers


#include<stdio.h>

main()
{
    float a,b,mul,sub,div;
    printf("Enter value of a and b \n");
    scanf("%f%f",&a,&b);

    sub=a-b;
    mul=a*b;
    div=a/b;

    printf("Multiplication of %f and %f = %f \n",a,b,mul);
    printf("Division of %f and %f = %f \n",a,b,div);
    printf("Subtraction of %f and %f = %f \n",a,b,sub);

}




/*
INPUT :
Enter value of a and b
25
50

OUTPUT :
Multiplication of 25.000000 and 50.000000 = 1250.000000
Division of 25.000000 and 50.000000 = 0.500000
Subtraction of 25.000000 and 50.000000 = -25.000000
*/

Comments