URI 1010 Simple Calculate Solution in C++
URI Online Judge Solution 1010 👀 Simple Calculate 👀
URI Online Judge Solution 1010 Simple Calculate 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 1010☺Simple Calculate ☺ in C++
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,x,y;
double m,n,ans;
cin>>a>>x>>m;
cin>>b>>y>>n;
ans=(x*m)+(y*n);
cout<<fixed;
cout<<setprecision(2)<<"VALOR A PAGAR: R$ "<<ans<<endl;
return 0;}
No comments