after some great help from Tater ive spent some time looking at it i now understand how it works on paper but i am still struggling to put that into a c program. As a C newbie wondering if anyone can help. The user must input the values of resistance R, capacitor C and Supply Voltage Vs. here is as far as ive got before hitting the wall. ( sorry if these basic c questions seem silly, only just started out! The aim of the program is to find how long it takes for capacitor to charge up 50%, 70% and 90%
Code:
#include <stdio.h>
main()
{
float r;
float c;
float vs;
float vc;
printf("please input the value of the resistance\n");
scanf("%f",&r);
printf("please input the value of the current\n");
scanf("%f",&c);
printf("please input the value of the source voltage\n");
scanf("%f",&vs);
}