Class Book

Description:

t Case 1 Input (stdin) 1234 DSP 560 7 Expected Output Total cost is 3920 Test Case 2 Input (stdin) 6789 CA 390 3 Expected Output Total cost is 1170

Program :


#include <iostream>

using namespace std;

int main()

{

int a,c,d,t;

  char b[10];

  cin>>a>>b>>c>>d;

  t=c*d;

  cout<<"Total cost is "<<t;

return 0;

}