Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
531 B
1
Indexable
Never
#include<vcl.h>
#include<stdio.h>
#include<string.h>
#include<conio.h>

main()
{
printf("\t>>MENGETAHUI BERAT BADAN IDEAL<<\n");
printf("\n==========================================\n");
int b,bbi;
char a[20];
printf("Nama Anda=");scanf("%s",&a);
printf("Tinggi Badan=");scanf("%d",&b);
printf("\n------------------------------------------\n");
bbi=(b-100)*90/100;
printf("Berat Badan Ideal Anda=%d",bbi);
printf("\n------------------------------------------\n");
printf("tekan ENTER untuk keluar");
getch();
}