C++ software for home work
HI GUys,
As part of my electronics course, we are doing a brief course on programming, but i have been unable to attend my college due to the lifts being down :mad: (wheels for legs)
and now i am far behind,
and i was wondering if theirs a free program that i could use to make such easy programs as below,
thanks
Code:
#include<iostream.h>
void main(void)
{
int voltage,resistance,current;
cout<<"enter current(amps):\t"<<endl;
cin>>current;
cout<<"enter resistance(ohms):\t"<<endl;
cin>>resistance;
voltage=current*resistance;
cout<<"current:\t"<<current<<endl;
cout<<"resistance:\t"<<resistance<<endl;
cout<<"voltage:\t"<<voltage<<endl;
}