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

difference between spiral and waterfall model

1 Answers  


main() { unsigned int k = 987 , i = 0; char trans[10]; do { trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' ); } while(k /= 16); printf("%s\n", trans); }

4 Answers   Vector,


main() { int i; printf("%d", &i)+1; scanf("%d", i)-1; }

1 Answers  


Differentiate Source Codes from Object Codes

1 Answers  


write a c prog for removing duplicate character from an array and sorting remaining elements using a single array

1 Answers  


How to explain the final year project as a fresher please answer with sample project

0 Answers  


Can a pointer be static?

0 Answers  


errors in computer programmes are called

1 Answers   NET,


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

0 Answers   RBI,


How can I access a memory located at certain address?

2 Answers   CSC,


What are logical errors and how does it differ from syntax errors?

0 Answers  


How to write a C program to determine the smallest among three nos using conditional operator?

2 Answers   Google,


Categories