Dear Helpers,
I am not able to build and compile the following code. Would you please help me find the mistake.
Thanks,
Aram
#include <stdio.h>
/*paul wilson*/
/*et2560*/
/*UNIT 3 LAB A*/
/*this program is to calculate voltge from current and resistance using ohms law*/
int main (void)
{
double voltage, current, resistance;
printf("enter the current in amps: ");
scanf("%1f", ¤t);
printf("enter the resistance in ohms: ");
scanf("%1f", &resistance);
voltage=resistance*current;
printf("\nThe voltage is %.3f for a circuit with %.3f current and %.3f
resistance\n",voltage, current, resistance);
return(0);
}