im just a beginner in dev c++, please check my codes if correct.
__________________________________________
#include<stdio.h>
/* Calculation of total resistance */
main()
{
float a, b;
printf("Enter the resistance value of R1 in ohm:");
scanf("%f", &a);
printf("Enter the resistance value of R2 in ohm:");
scanf("%f", &b);
printf("The Total Resistance of R1 and R2 connected in series is %f ohm", "a+b");
getchar();
return 0;
}
__________________________________________
the only sentence that appear is --> Enter the resistance value of R1 in ohm:
photo:
dev c++