#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr();
float p1,p2,hasil;
printf("====================\n");
printf("PERKALIAN 2 PECAHAN\n");
printf("====================\n");
p1=3.0/4.0;
p2=2.0/3.0;
hasil=p1*p2;
printf("%.2f * %.2f = %.2f",p1,p2,hasil);
getch();
}
Nanti hasilnya seperti ini :
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar