my calculator wont work it says end of file at line 72

#include <iostream>
#include <string>
#include <Windows.h>
using namespace std;

int main()
{
std::string input;
cout << "Choose arithmetic: Addition or Subtraction or Multiply or Divison " << endl;
cin >> input;

if(input == "Addition")
{
int first;
cout << "Enter the first number: " ;
cin >> first ;

int second;
cout << "Enter the second number: " ;
cin >> second ;

int sum = first + second;
cout << "The sum of these numbers is: " << sum << '\n' ;
Sleep(20000);
}

if(input == "Subtraction")
{
int first;
cout << "Enter the first number: " ;
cin >> first ;

int second;
cout << "Enter the second number: " ;
cin >> second ;

int diff = first - second;
cout << "The difference of these numbers is: " << diff << '\n' ;
Sleep(20000);

}
if(input=="Multipy")
{
int first;
cout << "Enter the first number: " ;
cin >> first;
int second;
cout << "Enter the second number: ";
cin >> second;

int diff = first * second;
cout << "The difference of these numbers is: " << diff << '\n' ;
Sleep(200000);
}

if(input=="Divison")
{
int first;
cout << "Enter the first number: " ;
cin >> first;
int second;
cout << "Enter the second number: ";
cin >> second;

int d = first * second;
cout << "The difference of these numbers is: " << d << endl;
Sleep(20000);
}
i think you just left out a '}' it worked fine for me
Topic archived. No new replies allowed.