menghitung tagihan wartel

29 Januari, 2009

=========================================
*menghitung tagihan wartel
=========================================
#include
int main()
{
float c,e,f,jml;
int a,b,d;
printf("jumlah jam=");
scanf("%d",&a);
printf("jumlah menit=");
scanf("%d",&b);
printf("jumlah detik=");
scanf("%f",&c);
//konversi ke menit

d=a*60;
e=c/60;
f=d+b+e;
//jumlah yg hrus dbayar
jml=f*150;

printf("jumlah yang harus dibayar Rp %.2f",jml);




return 0;
}

Related Post:

0 komentar:

About This Blog

Lorem Ipsum

  © Free Blogger Templates Columnus by Ourblogtemplates.com 2008 and Modified by blog wallpaper

Back to TOP