Function prototype: declare getnum() prior to its first use
#include <stdio.h> /* declare getnum() prior to its first use */ float getnum(void) { float x; printf("Enter a number: "); scanf("%f", &x); return x; } int main(void) { float i; i = getnum(); printf("%f", i); return 0; }