Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Post New Answer

More C Interview Questions

State two uses of pointers in C?

0 Answers   Aspire, Infogain,


What is meant by errors and debugging?

0 Answers  


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

2 Answers  


I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?

3 Answers  


what is a c-language.what is do.

4 Answers   HCL,


How macro execution is faster than function ?

0 Answers   Wipro,


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?

0 Answers  


Why void main is used in c?

0 Answers  


Can a variable be both const and volatile?

0 Answers  


write a program to remove occurrences the word from entered text?

1 Answers  


What is function prototype in c language?

0 Answers  


What is return in c programming?

0 Answers  


Categories