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

What are the various arithmetic operators in c++?

0 Answers  


Write a program which uses functions like strcmp(), strcpy()? etc

0 Answers  


What do you mean by friend class & friend function in c++?

0 Answers  


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

0 Answers  


What do you mean by global variables?

0 Answers  






Define precondition and post-condition to a member function?

1 Answers  


Explain what happens when a pointer is deleted twice?

0 Answers  


What is c++ mutable?

0 Answers  


What is a forward referencing and when should it be used?

0 Answers  


How do you flush std cout?

0 Answers  


What is this weird colon-member (" : ") syntax in the constructor?

0 Answers  


3- Write a program to find larger and smaller of the two numbers.

4 Answers   Luminous,


Categories