#include<stdio.h>
int main()
{
float bunga;
float tab;
tab=1000000;
printf("tabungan awal: RP.%6.2f", tab);
printf("\n");
for (int i=1; i<=12; i++)
{
bunga = tab*2/10;
tab=tab+bunga;
printf("tabungan bulan ke %2.0i : Rp.", i);
printf("%6.1f", tab);
printf("\n");
}printf("tabungan akhir: RP.%6.2f", tab);
}
Search This Blog
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment