Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- #3180
- *******************************************************************************/
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b,c,n,m,p,s;
- cout<<"a= ";
- cin>>a;
- cout<<"b= ";
- cin>>b;
- cout<<"c= ";
- cin>>c;
- cout<<"n= ";
- cin>>n;
- cout<<"m= ";
- cin>>m;
- cout<<"p= ";
- cin>>p;
- s=a*n+b*m+c*p;
- cout<<"Suma este "<<s;
- return 0;
- }
Add Comment
Please, Sign In to add comment