Arithmatic Operations



#include<iostream.h>
#include<conio.h>

void main()
{
    int a = 11, b = 5, c, d, e, f, g;
    clrscr();

    c = a + b;
    cout<<"Sum is:"<<c;

    d = a - b;
    cout<<"\nDifference is:"<<d;

    e = a * b;
    cout<<"\nProduct is:"<<e;

    f = a / b;
    cout<<"\nDivision is:"<<f;

    g = a % b;
    cout<<"\nRemainder is;"<<g;
}
Previous Post Next Post