CALCULATE THE PRICE
step1 :Enter kg number do want to find price
step 2:Enter the price
output of the program see that
#include <stdio.h>
int main()
{
    float a, b, c, q;
    while (q == q)
    {
        printf("\nEnter kg number do want to find price:");
        scanf("%f", &a);
        printf("\nEnter the price:");
        scanf("%f", &b);
        c = (b / 1000) * a;
        printf("\nThe Answer is :%f", c);
    }
    return 0;
}

 
 
 
1 Comments