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

void garis()
{
printf(“\n\n======================================================================\n\n”);
}

int penjumlahan(int a,int b)
{
int hasil=a+b;
return hasil;
}
int pengurangan(int a,int b)
{
int hasil=a-b;
return hasil;
}
float pembagian(float a, float b)
{
float hasil=a/b;
return hasil;
}
int perkalian(int a,int b)
{
int hasil=a*b;
return hasil;
}
int Lpp(int p,int l)
{
int luas=p*l;
return luas;
}
float Lsegi3(int a,int t)
{
float luas=(a*t)/2;
return luas;
}
float Vbola(float r)
{
float v;
v=(4.0/3.0)*3.14*r*r*r;
return v;
}
float Lbola(float r)
{
float l;
l=4*3.14*r*r;
return l;
}
int forgenapturun(int b)
{
for (b=b;b>0;b–)
{
if(b%2==0){
printf(“%10.2d\n\n”,b);}
}
}
int forganjilturun(int b)
{
for (b=b;b>0;b–)
{
if(b%2==1){
printf(“%10.2d\n\n”,b);}
}
}
int cobawhile(int i)
{
while (i>=1)
printf(“%10.2d\n”,i–);
}
int forulang(int a)
{
for (a=a; a>0; a–){
printf(“%10.2d\n\n”,a);
}
}
int prima(int n)
{
int a;
if(n==2)
return 1;
if(n%2==0||n==1)
return 0;
for(a=3;a<=sqrt(n);a+=2)
{
if(n%a==0)
return 0;
}
return 1;
}
int hargatiket(int x)
{
int bayar;
bayar = x * 20000;
return bayar;
}
float ifsendiritunjangan(float gaji_kotor)
{
int jumlah_anak;
float tunjangan,persen_tunjangan=0.2;
if(jumlah_anak>3)
persen_tunjangan=0.3;
tunjangan=persen_tunjangan * gaji_kotor;
return tunjangan;
}
int nilaimhs(int data)
{
int i;
float nilai,rata,total=0;
for(i=1;i<=data;){
if(nilai<0) continue;
total = total + nilai;
i++;}
rata = total / data;
}
float arraytakberukuran(float a,float b,float c)
{
float total=0;
int i;
for (i=0;i<3;i++)
total = total + (a,b,c);
}
float ifelsenem(float a,float b,float c,float d)
{
float jumlah,rata;
jumlah = a + b + c + d;
}