Write a program to encrypt the data in a way that inputs a
four digit number and replace each digit
by (the sum of that digit plus 7) modulus 10. Then sweep the
first digit with the third, second digit
with the fourth and print the encrypted number.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

char *ch = "abcde"; char c[4]; how to copy 'ch' to 'c'?

4 Answers   Thomson Reuters,


What is implicit conversion/coercion in c++?

1 Answers  


Explain how a pointer to function can be declared in C++?

0 Answers  


What is Virtual Inheritance?

7 Answers   Amazon, Wipro,


What is "strstream" ?

1 Answers   Huawei,






What is a 'pure' virtual function and what's its use?

1 Answers  


Explain linear search.

0 Answers  


What are the types of pointer?

0 Answers  


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

0 Answers  


What operators can you overload in c++?

0 Answers  


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

0 Answers  


What is general format for a prototype?

0 Answers  


Categories