A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9.
I need to write a program that takes the cipher from the keyboard and prints the new cipher.
I thought of the following:
Take the input from the keyboard and put it into a string or an array.
Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable.
Print the new variable.
Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
No Answer is Posted For this Question
Be the First to Post Answer
State two uses of pointers in C?
What is meant by errors and debugging?
please can some one guide me, to the answer Write a C program to enter 15 numbers as an input from the keyboard and program will find and print odd numbers and their average. i have studied while and do while loop for loop if and else if switch
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?
what is a c-language.what is do.
How macro execution is faster than function ?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
Why void main is used in c?
Can a variable be both const and volatile?
write a program to remove occurrences the word from entered text?
What is function prototype in c language?
What is return in c programming?