Professional Documents
Culture Documents
5181151001
PTIK – B 2018
Program Menghitung Gaji Dengan PROSEDUR
Algoritma Program
//program menghitunggajidenganProsedur
#include<stdio.h>
int main ()
{
long NIP;
int jam;
charnama[20];
if(a>7&& a-7!=0)
{
lembur=(30000)*(a-7);
if(a>=8)
{
uangmkn=5000;
if(a>=9)
{
translem=4000;
printf("%li\t%s\t%i\t\t%i\t%i\t\t%i", c,
b,GajiP,lembur,uangmkn,translem);
printf("\n\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4
\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\
xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\x
c4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\n");
}
}
}
else
{
printf("%i\t%s\t%i\t\t%i\t%i\t%i", c, b,GajiP,lembur,uangmkn,translem);
}
}
INPUT Program
OUTPUT Program