Lets write a C program to check whether a user input/entered positive number can be expressed as sum of two…