Author Topic: C++ Multiplication Calculator  (Read 142 times)

Online Eathaern

  • Local annoyance.
  • Administrator
  • Mortar
  • ****
  • Posts: 4,963
  • Karma: +37/-0
  • EGD 13 winner
C++ Multiplication Calculator
« on: July 20, 2020, 06:48 pm »
Code: [Select]
#include <iostream>
using namespace std;

int firstNumber = 0;
int secondNumber = 0;
int multiplicationResult = 0;

void MultiplyNumbers()

{
cout << "Enter the first number";

cin >> firstNumber;

cout << "Enter the second number: ";

cin >> secondNumber;

multiplicationResult = firstNumber * secondNumber;
cout << firstNumber << " x " << secondNumber;
cout << " = " << multiplicationResult << endl;

}

int main()

{

cout << "This program will multiply two numbers" << endl;

MultiplyNumbers();

return 0;

}





I hope you can use it if u want or something lol idk
« Last Edit: July 21, 2020, 09:08 pm by 20ethan09 »
8)
 

Offline 7grant2

  • General
  • Mogura
  • *****
  • Posts: 39,458
  • Karma: +578/-0
  • My Name is Ozymandias
Re: C++ Multiplication Calculator
« Reply #1 on: July 21, 2020, 09:07 pm »
Ps. There is a code block you can do in BBCode
 

Online Eathaern

  • Local annoyance.
  • Administrator
  • Mortar
  • ****
  • Posts: 4,963
  • Karma: +37/-0
  • EGD 13 winner
Re: C++ Multiplication Calculator
« Reply #2 on: July 21, 2020, 09:08 pm »
Ps. There is a code block you can do in BBCode
Fixed thanks lol
8)