diff --git a/mathgenerator/Generates Random Questions for Addition b/mathgenerator/Generates Random Questions for Addition new file mode 100644 index 0000000..2e93455 --- /dev/null +++ b/mathgenerator/Generates Random Questions for Addition @@ -0,0 +1,15 @@ +#import the library necessary +import random as r + +#using built in function of the library +x=r.randrange(1,1000) +y=r.randrange(1,1000) +print("Here is a question for you find the correct answer") +g=x+y +print(g) + +#Checking if statement +if g==x+y: + print("Correct Answer ") +else: + print("Sorry the answer is incorrect")