1.) C++
#include <iostream>
#include <stdio.h>
#include <conio.h>
using namespace std;
class c{
public :
aduh();
void input();
void proses();
private :
int a,b,hasil;
};
c::aduh(){
cout<<"ntah apa nama ny\n\n";
}
void c::input(){
cout<<"nilai pertama : ";
cin>>a;
cout<<"nilai kedua : ";
cin>>b;
cout<<"_______________________________________________\n\n";
}
void c::proses(){
cout<<"OPERASI-OPERASI ARITMATIKA"<<endl;
hasil=a+b;
cout<<a<<"+"<<b<<"= "<<hasil<<endl;
hasil=a-b;
cout<<a<<"-"<<b<<"= "<<hasil<<endl;;
hasil=a*b;
cout<<a<<"*"<<b<<"= "<<hasil<<endl;;
hasil=a/b;
cout<<a<<":"<<b<<"= "<<hasil<<endl;;
}
int main(){
c o;
o.input();
o.proses();
return 0;
}
2.) RAPTOR