its the same thing but just with the float get_z as opposed to the int get_z... i'm really confused as to why its not working

Code:
#include <stdio.h>
#include <stdlib.h>

int main()
{
  float z;
  
      z=get_z();
      printf("z in main fuction = %f\n", z);
      
      system("PAUSE");
      return 0;
}


float get_z()
{
  float z;
      
      printf("please enter # for z: ");
      scanf("%f", &z);
      
      return z;
}