This is the C program
#include <stdio.h>
#include <stdlib.h>
int main (void){
double voltage, resistance;
printf("Enter your Voltage: ");
scanf("%f", &voltage);
printf("Enter your Resistance: ");
scanf("%f", &resistance);
double amps = voltage / resistance;
printf("With voltage %f and Ohm %fohms, amps is equal to %f \n", voltage, resistance, amps);
return 0;
}
Why is voltage and resistance variables returning values of 0.00?