I am new to programming, I am having an issue with the pelles compiler. i have written a very basic program as follows:
#include <stdio.h>
#include <math.h>
int
main()
{
float VS;
printf("Please enter Voltage source.\n");
scanf("%f", &VS);
printf("Voltage is %f\n", &VS);
system("pause");
return (0);
}
my issue is when i input voltage as any number i get the number .007813 in return i dont understand why it is not returning the number i am assigning anyone have any suggestions?