How To Solve (4.6)


#include <stdio.h>
#include<iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;

main() {
    int x;
    int y;
    cout<<"\nMasukkan bilangan ke- 1 :";
    cin>>x;
    cout<<"Masukkan bilangan ke-2 :";
    cin>>y;
    if(x>y){
   
    cout<<"lebih besar dari pada\n\n ";cin>>x,y;
}else if(x=y){
    cout<<"sama besar dengan\n\n";cin>>x,y;

}else{
    cout<<"lebih kecil dari pada\n\n";cin>>x,y;
}
   
    return 0;
}


Previous
Next Post »
Copyright © 2015 Bettong'rs All Right Reserved
Created by Arlina Design Powered by Blogger