In C program
#include<stdio.h>
Write a program to simulate a pick-5 lottery game.
Your program must generate and store 5 distinct random numbersbetween 1 and 9 (inclusive) in an array.
The program prompts the user for:
- an integer random seed
- five distinct integers between 1 and 9 (which are stored inanother array)
The program then compares the two arrays to determine if theyare identical.
If the two arrays are identical, then the user wins thegame.
otherwise the program outputs the number of matching digits andtheir position in the array.
For Example:
Enter an integer random seed: 45To play the Pick-5 game, enter five integers bewteen 1 and 9 (inclusive): 1 2
PayPal Gateway not configured
PayPal Gateway not configured