Provide c program for generating number list