Header Ads

Header ADS

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.
https://www.urionlinejudge.com.br/judge/en/problems/view/1014
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

URI 1070 Six Odd Numbers Solution in C++

URI 1070 Six Odd Numbers Solution in C++ Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just fin...

Powered by Blogger.