OK, I've decided that my 2 1/2 year old will be easier to figure out than the beginings of C programming. Well, I've tried all three and attempted modification (out of guessing) and still don't reach my needed result. Once again, out of any order of numbers such as 1234(I've just pick this size in digits, could be larger if I wanted), I need to encrypt that number by adding 7 to each charater: (1 becomes 8, 2 becomes 9, 3 becomes 0 and 4 becomes 1) The last digit of the roleover is not used. Can anyone see where I'm messing up?

#include <stdio.h>

#include <stdlib.h>

int main(void)

{

system("cls");

int temp, int exp = 0, int encrypted = 0, int normal;

int pow

while(normal > 0){

temp = normal % 10;

temp += 7;

temp = temp % 10;

encrypted += temp * pow(10,exp);

exp ++;

normal /= 10;

printf("Enter your name: ");

scanf("%s", name);

printf("Enter a number to encrypt: ");

scanf("%f", temp);

printf("new number is: %f%f%f%f, ");

return EXIT_SUCCESS;

return 0;

}

Now the rest of this small snippit is to decrypt the number back to the orignal number set but should be nothing but reversing the encrypting part. any ideas.....,