Fruitful Functions

capture For doing the Fruitful Functions the first step to do was write a function named check_fermat or you could have another in side this function it takes four augment A, B, C and N. Then use the if statement set up that if the N is greater than 2 and a**n+b**n==c**n it print out “Fermat was right”, else it print out “No, that doesn’t work” then you have to call the function by check_fermat(a,b,c,n).In this case we ask the user to put in the value so we go all the way up to the first code make a input that let user enter the value for A, B, C and N be careful we need a integers number so don’t forget to use int for make sure the user enter the value is integers.