Program Menghitung Besar Daya Listrik

Posted by Budi Arieyanto | Posted in | Posted on 05.01

#include<iostream.h>
#include<conio.h>

void main()
{
 float V,R,I,W;
 clrscr();

 cout<<"MENENTUKAN BESAR DAYA LISTRIK"<<endl;

 R=10;
 V=12;

 I=V/R;
 V=I*R;
 W=V*I;


 cout<<"\n\nNilai V    = "<<V<<endl;
 cout<<"\n\nNilai W    = "<<W<<endl;

 getche();
 }

Comments (0)

Posting Komentar