C++ :
#include<iostream> using namespace std; int main() { int A,B,C,Z; cin>>A>>B>>C; Z=A*0.2+B*0.3+C*0.5; cout<<Z; }
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 津桥OJ universal account