Tuesday, 24 February 2015

Arithmetic Operator Program Using C++

/*
Arithmetic Operators
====================
+
-
*
/

% -     Modulo Operator  ( Reminder After Division )
*/

#include<iostream.h>
#include<conio.h>
main()
{
int a=10,b=5;
clrscr();
cout<<"\n A   +   B   ="<<(a+b);
cout<<"\n A   -   B   ="<<(a-b);
cout<<"\n A   *   B   ="<<(a*b);
cout<<"\n A   /   B   ="<<(a/b);
cout<<"\n A   %   B   ="<<(a%b);
getch();
}

No comments:

Post a Comment