Why is this code not looping and is not passing the value the function.
The output is zero and, i would like to pass the number 1, 2, 3, 4, 5, 6, 7, 8, 9,
to main. Why is this not working
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
float get_value(void);
int main ( )
{
system("cls");
float a;
a=get_value();
printf("\n\n%1.1f",a);
getch();
}
float get_value(void)
{
float a;
for(a=0;a<10;a++)
{
return(a);
}
getch();
}