Lets write a C program to print N co-prime or relative prime numbers. N being the user entered limit for…