Subtract of two variables in C++ programming

subtraction.learnprogramming.com

Subtraction of two variables:



#include < iostream >
using namespace std;
int main()
{
int a ;
int b ;
int result = 0 ;
a = 4 ;
b = 3 ;
result = a - b ;
cout << result << endl ;
return 0;
}

Comments

Popular posts from this blog

How to display the output in C++