/*
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();
}
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