nope now im gettin the wrong answer again
nope now im gettin the wrong answer again
It seems you cant modulus a float or double,
and when i do this....
It seems to only work to an extent, if array1[i] is like over a certain number, it won't work. It works if array1[i] is 21, but not 26.Code:int i; double temp2; int cseven[30]; long temp3; printf("\n Decryption: \n"); for (i=0; i<length; i++) { temp2 = pow(array1[i],7); temp3 = temp2; printf(" %ld \n ", temp3); printf(" %ld \n ", temp3%33); }
so stuck.....