PERHITUNGAN DAYA AKTIF DANB REAKTIF

#include
#include

main()
{
float S,P,Q,cosphi;
cosphi=0;
puts ("===PERHITUNGAN DAYA AKTIF DANB REAKTIF===");
puts ("berdasarkan operubahan cos phi");
printf("masukkan nilai daya semu");
scanf("%f",&S);
while (cosphi <= 1)

{
P=S*cosphi;
Q=S*(1-cosphi);
printf("\ncosphi= %f P = %f Q = %f", cosphi, P,Q);
cosphi +=0.1;
}
getch();
}

Categories:

0 comments:

Post a Comment