#include <iostream>using namespace std; int main() { int k1,w1,k2,w2; cin >>k1>>w1>>k2>>w2; cout <<k1*w1+k2*w2; return 0;}
Standard input is empty
1029723904
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!