English, asked by meghaks22, 28 days ago

ee Min Ho was travelling from Korea to USA and he was not aware of the currency system of USA. Can you please help him to add two dollars and cents?

INPUT & OUTPUT FORMAT:

Input consists of 4 integers.

First two inputs correspond to the value of the first dollar and cent.

Next two inputs correspond to the value of the second dollar and cent.

Output should print the sum of dollar and cent.

Answers

Answered by davnit7640
4

Answer:

I will not tell you any much things, just the word that you have typed the wrong name of Lee Min Ho.. please correct it..

Answered by rahulearth2003
0

Answer:

#include<iostream>

using namespace std;

int main()

{

 int a,b,c,d;

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

 int dollors=a+c,cents=b+d;

 if(cents>=100){

  dollors=dollors+(cents%1000/100);

   cents=cents%100;

 }

 cout<<dollors<<endl<<cents;

}

Explanation:

You can easily understand the program :) .

Similar questions