Tahun Kabisat (C++)

#include <iostream.h>
#include <conio.h>
void main()
{
int awal, akhir, tahun;
clrscr();
cout<<“. : : Tahun Kabisat : : .” ;
cout<<“\n\nMasukkan Tahun Awal : “;
cin>>awal; Baca lebih lanjut

Calculator_Sederhana (C++)

#include <iostream.h>

#include <conio.h>

int pil,x,y; float A,B;
long int pangkat(int x,int n);
long int pangkat(int x,int n)
{
if(n==1)
return x;
else
return(x * pangkat(x,n-1));
}

void menu()
{
clrscr();
cout<<” : : Calculator Sederhana : : .”<<endl;
cout<<endl;
cout<<” =====================\n”;
cout<<” 1. Perkalian”<<endl;
cout<<” 2. Pembagian”<<endl;
cout<<” 3. Penjumlahan”<<endl;
cout<<” 4. Pengurangan”<<endl;
cout<<” 5. Pangkat “<<endl;
cout<<” 6. Keluar”<<endl;
cout<<” ======================\n”;
cout<<” \n Pilih Kode 1-6 : “; cin>>pil;
} Baca lebih lanjut

Rahmadya Trias Handayanto

"Just for a little kindness"

Arisgunaryati's Blog

Be the best, whoever, whatever, whenever, wherever, however you are....

Jurnalnya Wawa

Mudah Dikenal Sulit Untuk Dilupakan

WordPress.com

WordPress.com is the best place for your personal blog or business site.