Write a c program: Find a number that is greater than 3 (prints until a number than 3 is entered) to find 'b'.
Write a c
Find a number that is greater than 3 (prints until a number than 3 is entered) to find 'b'.
Then the user must enter another number that is greater than the previous entered starting point to stop finding 'b'.
Another number should be entered that is greater than 0 find 'r'.
User should enter another number that needs to be greater than 'r' to stop finding 'r'.
Now you must compute the value of 'b' and 'r'. For the 'b', there should be an r where the gdc(r,r+i)>2 or gcd(r+b,r+i)>2. If it is true, then print the value of b and r, else print “no”.
'b' is a positive number where a+i are the consecutive integers (until the stop finding r) where 0<i<b.
The program should start from the entered b value to the stop finding value b.
Step by step
Solved in 4 steps with 7 images