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

Offline Ethan2009

  • Idk
  • TRASH
  • Disruptor
  • ****
  • Posts: 8,066
  • Karma: +84/-0
  • idk
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 »
Idunno
 

Offline 7grant2

  • General
  • Mogura
  • *****
  • Posts: 39,964
  • Karma: +629/-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
 

Offline Ethan2009

  • Idk
  • TRASH
  • Disruptor
  • ****
  • Posts: 8,066
  • Karma: +84/-0
  • idk
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
Idunno