URI 1014 Consumption Solution in C++
URI 1014 Solution 👀 Consumption 👀in C++
URI Online Judge Solution 1014 Consumption 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 1014 |
URI Online Judge Solution 1014 Consumption in C++
#include<bits/stdc++.h>
using namespace std;
int main(){
int x;
double y,ans;
cin>>x>>y;
ans=x/y;
cout<<fixed;
cout<<setprecision(3)<<ans<<" km/l"<<endl;
return 0;}
No comments