#include
int main()
{
int a,b,t,fpb;
printf("masukkan bilangan bulat pertama : \n"); scanf("%d",&a);
printf("masukkan bilangan bulat kedua : \n"); scanf("%d",&b);
while(b!=0)
{
t=b;
b=a%b;
a=t;
}
fpb=t;
printf("fpbnya adalah %d",fpb);
return 0;
}
Copyright © ◀▬ ♥ Szi Chipi ♥▬▶
Template by Blog Template 4 U | Blogspot Tutorial | Blogger
Comments :
0 komentar to “Fungsi "FPB"”
Posting Komentar