URI 1017 Fuel Spent Solution in C++
URI 1017 👀 Fuel Spent 👀Solution in C++
URI Online Judge Solution 1017 Fuel Spent in C++
Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.
Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.
URI Online Judge Solution 1017 Fuel spent in C++
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
double ans;
cin>>a>>b;
ans=(a*b)/12.0;
cout<<fixed;
cout<<setprecision(3)<<ans<<endl;
return 0;}
No comments