Here is a simple calculator in c++ using Code::Blocks for beginners. Start a new project, choose Console Application, follow the setup prompt. Once project is open, choose main.cpp and enter the following code, then build and run. This will ask for 2 numbers and add them together. Enjoy :)
#include <iostream>
using namespace std;
int main()
{
int a;
int b;
int sum;
cout << "Enter first num. \n";
cin >> a;
cout << "Enter second num. \n";
cin >> b;
sum = a+b;
cout << "The sum is - " << sum << endl;
return 0;
}
This comment is currently awaiting admin approval, join now to view.
This comment is currently awaiting admin approval, join now to view.
This comment is currently awaiting admin approval, join now to view.