I wrote the following program in Basic. It works in Basic, but I cannot get it
converted to C++. Any help in that direction will be appreciated. The values for
a, S, and R can be changed.
a=3
for S=1 to 5 step 2
R=2
N=((2^R)*S)+1
if int(((a^S)-1)/((2^R)*S+1))=(( a^S)-1)/N then print "yes"; "S="; S; "R="; R; "a="; a else print "no"
next S
converted to C++. Any help in that direction will be appreciated. The values for
a, S, and R can be changed.
a=3
for S=1 to 5 step 2
R=2
N=((2^R)*S)+1
if int(((a^S)-1)/((2^R)*S+1))=(( a^S)-1)/N then print "yes"; "S="; S; "R="; R; "a="; a else print "no"
next S
Comment