Slider

Wednesday, October 9, 2013

Posted by arif On 9:11 PM

#include<iostream.h>
#include<stdio.h>
#include<conio.h>
int main()
{
    float setengah,alas,tinggi,luas;
    clrscr();
    cout<<"Masukkan nilai alas     :";
    cin>>alas;
    cout<<"Masukkan nilai tinggi     :";
    cin>>tinggi;
    setengah = 0.5;
    luas = setengah*alas*tinggi;
    cout<<"\nHasil "<<"Luas Segitiga :"<<luas;
    getch();
    }

Wednesday, October 2, 2013

Posted by arif On 8:46 PM



#include <iostream.h>

#include <stdio.h>

#include <conio.h>
 
main ()
 
{

 
 int nilai;


 cout<<"Masukkan Nilai ANda : ";

 
 cin>>nilai;

 
 if(nilai>=80)

 
 cout<<"Nilai A";

 
 else if((nilai>=75)&&(nilai<80))

 
 cout<<"Nilai Anda B";

 
 else if((nilai>=60)&&(nilai<75))

 
 cout<<"NIlai Anda C";

 
 else if((nilai>50)&&(nilai<60))

 
 cout<<"Nilai Anda D";

 
 else

 
 cout<<"Anda Tidak Lulus\n"<<endl;

 
 getch();

}

Posted by arif On 8:37 PM

 #include<iostream>
#include<constrea.h>
#include<cstring>
main()
{

                int x,y,hasil;
   cout<<"KALKULATOR SEDERHANA"<<endl<<endl;
   cout<<"daftar operator aritmatika :"<<endl;
   string jumlah ="(1) penjumlahan";
   cout<<jumlah<<endl;
   string pengurangan="(2) pengurangan";
   cout<<pengurangan<<endl;
   string pembagian="(3) pembagian";
   cout<<pembagian<<endl;
   string perkalian="(4) perkalian";
   cout<<perkalian<<endl<<endl;

   cout<<"masukan nilai 1 = ";
   cin>>x;
   cout<<"masukan nilai 2 = ";
   cin>>y;
a:
   int z;
   cout<<"masukan nomer operator aritmatika = ";
   cin>>z;

                if(z==1)
   {
                hasil = x+y;
                cout<<"hasil operasi"<<jumlah<<", "<<x<<" dan "<<y<<" = "<<hasil<<endl;
   }
   else if(z==2)
   {
                hasil = x-y;
      cout<<"hasil operasi"<<pengurangan<<", "<<x<<" dan "<<y<<" = "<<hasil<<endl;
   }
   else if(z==3)
   {
                hasil = x/y;
      cout<<"hasil operasi"<<pembagian<<", "<<x<<" dan "<<y<<" = "<<hasil<<endl;
   }
   else if(z==4)
   {
                hasil = x*y;
      cout<<"hasil operasi"<<perkalian<<", "<<x<<" dan "<<y<<" = "<<hasil<<endl;
   }
   else
   {
                cout<<"nomer operator aritmatika salah"<<endl<<endl;
                                goto a;
   }
getch();
}

Wednesday, September 4, 2013

Posted by arif On 8:59 PM

Ohayo goszaimasu minna..

namaku Muhammad Arif Yanuary

cita2 ku Jadi ahli teknik

hobiku futsal, main game, belajar, mengamati sesuatu

aku paling suka sama Nabi Muhammad krn beliau adalah panutan terbaik seluruh umat manusia

Alamat web kesukaan ku Mangacanblog.com dan DAlovers.com

Wednesday, August 21, 2013

Posted by arif On 9:24 PM

Ahay lagi Pemirsa...

Posted by arif On 9:24 PM

Ahay lagi Pemirsa...

Posted by arif On 9:18 PM

Ahay Pemirsa