Posts

Showing posts with the label #zensar

Program to reverse the position of words

Image
 Program to reverse the position of words in a given spaced string. example :  input: my name is ayush output: ayush is my name input: you go there i will here output : here will i there go you .......................................................................................................................................................................... .................................................................................................................................................................... connect with me on Facebook Twitter Instagram Github Youtube

Sum of digits of factrorial of a given number asked in zensar march 2022

Image
                                                              Sum of digits of factorial .................................................................................................................................................................. connect with me on Facebook Twitter Instagram Github Youtube connect with me on Facebook Twitter Instagram Github Youtube

Transmit data in encrypted way (digit + 7) mod 10 asked in ZENSAR 2022 march

Image
 A company wants to transmit data over the telephone line, but they are concemed that their lives are tapped All of their data is transmitted as four-digit integers. They decided to encrypt a four digit number as follows  1: They will replace each digit by (digit+7) mad 10).  2: They will then swap the first digit with the third digit and the second digit with the foun The resulting four-digit number is then encrypted number  Write a program that can do an encryption operation. The program must take one input.  The input is a positive integer depending on the input.  Codes are in two methods  1 . without using function 2. Using a function and returning an array connect with me on Facebook Twitter Instagram Github Youtube 1st Method :- *********************************************************** 2. Using a function which retins an array  ...