C++ Aritmatika operation system

//lh3.googleusercontent.com/-K5UKWzgJhmU/AAAAAAAAAAI/AAAAAAAACdI/CN3nwiBZsGE/s512-c/photo.jpg
November 27, 2016




program aritmatika ini sangat membantu kita khususnya dalam perhitungan dasar matematika. silahkan mencoba sendiri.






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

using namespace std;

main()
{
    cout<<"Major : Informatics Enggineering\n";

    cout<<"Team : 2\n";

    cout<<"Aritmatika Operation System\n";

    cout<<"___________________________________________\n";
    int X,Y,Plus,Minus,Division,Multi,Mood;


    cout<<"Masukan X : ";
    cin>>X;
    cout<<"Masukan Y : ";
    cin>>Y;
    cout<<endl;

    Plus=X+Y;
    Minus=X-Y;
    Division=X/Y;
    Multi=X*Y;
    Mood=X%Y;

    cout<<X<<"+"<<Y<<"="<<Plus<<endl;
    cout<<X<<"-"<<Y<<"="<<Minus<<endl;
    cout<<X<<"/"<<Y<<"="<<Division<<endl;
    cout<<X<<"*"<<Y<<"="<<Multi<<endl;
    cout<<X<<"%"<<Y<<"="<<Mood<<endl;

getch();
}


Related Post

SUBSCRIBE TO OUR NEWSLETTER

closed