Friday, October 26, 2018

Uri 1017 Solution in C | Fuel Spent

/*Before seeing the code solution make sure that you have tried enough. Don’t copy- paste the whole code. Find out the logic. If you face any trouble, just inform me in comment.*/

#include<stdio.h>
main()
{
    int a,b;
    float c;
    scanf("%d%d",&a,&b);
    c=(a*b)/12.0;
    printf("%.3f\n",c);

    return 0;
}

 //Happy_Coding

No comments:

Post a Comment