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

In a function declaration, what does extern mean?

0 Answers  


What is the output of the following 3D Array int arr[3][2][2]={1,2,3,4,5,6,7,8,9,10,11,12}; what is the output for arr[2][1][0]?

6 Answers   HCL, Integra, IPMC, ORG,


What is buffering in c++?

0 Answers  


Do class declarations end with a semicolon?

0 Answers  


Which is most difficult programming language?

0 Answers  


Can static member variables be private?

0 Answers  


Under what conditions is multiple inheritance not recommended?

1 Answers  


What is the use of lambda in c++?

0 Answers  


What is while loops?

0 Answers  


Define basic type of variable used for a different condition in C++?

0 Answers  


What is a stack? How it can be implemented?

0 Answers  


What is c++ stringstream?

0 Answers  


Categories