Friday, October 26, 2018

Uri 1014 solution in C | Consumption

/*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 x;
    float y,t;
    scanf("%d%f",&x,&y);
    t=x/y;
    printf("%.3f km/l\n",t);
return 0;
}


 //Happy_Coding

No comments:

Post a Comment