#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;
}
http://codingc++.fashionandcs.com Program to display the output : Syntax: The syntax used to display the output within the C++ Program is cout must use angle brackets << and the semi colon ; with the sysntax if we want to display the word same as written, we uses " like: we want to display the word program we will write as: cout<<"program"; You can see the folowing program #include < iostream > using namespace std; int main() { cout << "Programming"; return 0; }
Comments
Post a Comment