Program to Calculate the Voltage using Ohms Law
#include <iostream.h>
#include <conio.h>
int main()
{
float V,I,R;
cout<<"Enter Value of Current= ";
cin>>I;
cout<<"Enter Value of Resistance= ";
cin>>R;
V=I*R;
cout<<"Voltage= "<<V<<endl;
getch();
return 0;
No comments :
Post a Comment