Firstly, I'd like to say that I'm relatively new to functions and my course standards state that I'm now supposed to relay information from the user to the program via functions, this means that I'm no longer able to use 'printf/scanf' combos in the main function.

Is it possible to do it via functions? I've tried the following method for example, but to no avail. It's confusing me.

Code:
#include <stdio.h>

int getlowR();




int main(void)
{

  getlowR();


  printf("Low range: %d, High range: %d", lowRange);


  return(0);
}

int getlowR()
{
  int lowRange;

  printf("Enter the low range value:");
  scanf("%d", &lowRange);
  return(lowRange);
}

I think the following works but then lowRange is native to the function, isn't it? How can I use it outside the function? For example, how would I go about actually printing the value acquired by the function in main?

Thanks.