intelektual alternatives

Posts Tagged ‘waris


#include
void suamitidakpunyaanak(){
int a,b,c,d,e,f,g,x,z,y;
float k,l,m,n,o,p;
printf(“\n”);
printf(“===================\n”);
printf(“Hitung Suami tidak punya anak\n”);
printf(“masukan jumlah warisan=”,’x’);scanf(“%i”,&x);
printf(“jumlah istri=”,’a’);scanf(“%i”,&a);
printf(“jumlah ibu=”,’e’);scanf(“%i”,&e);
printf(“jumlah bapak=”,’d’);scanf(“%i”,&d);
printf(“\n”);
printf(“bagian masing masing adalah:\n”);
printf(“===========================\n”);
k=(0.25*x);
l=(0.33*x);
m=x-(k+l);
printf(“warisan=%i\n”,x);
printf(“bagian istri=%f\n”,k);
printf(“bagian ibu=%f\n”,l);
printf(“bagian bapak=%f\n”,m);
} Baca entri selengkapnya »

Iklan

%d blogger menyukai ini: