//series resistance //
#include<stdio.h>
int main()
{
float resistance1,resistance2,resistance3,resistance4, voltage, current,totalresistance;
//input
resistance1=47.0;
resistance2=100;
resistance3=270;
voltage=420.0;
printf("the voltage:%5f V\n",voltage);
//processing
totalresistance=resistance1+resistance2+resistance3;
printf("the total resistance:%5f ohm\n",totalresistance);
current=voltage/totalresistance;
printf("the current is: %f A \n",current);
return 0;
}
//unit calculate your self