Computer Science, asked by richard2661, 9 months ago

Having crossed the three-headed dog, Harry, Ron, and Hermoine went through a secret trap door in search of Sorcerer's stone. On the way, they passed through a room and found that the room has only one door opposite to them and the door through which they entered has shut once they entered the room. The door was very large with a four digit number imprinted on it. When Harry and Ron tried to open it by casting out spells, it didn't open. Having tried various spells both of them got fed up and they left the task to Hermoine. Hermoine on curiously observing the room found that a statement was written on the top of the room. It was written as follows "I will be always four" "I can only be opened when you add my first and last and enter it" "If you find a sign, you should not consider it" Help Hermoine break the code and open the door so that they can save the sorcerer's stone.

Answers

Answered by harmanpreet3959
0

Answer:

u kguffycuvibugucyguvugfyxuzfx ifgxlb I cvMvKc I v8srf 8if.k v clhirs8rxr8d8tdt8srd8rzs

Explanation:

fjxitzirxktxitzirzr8xors9gxogxgoyxitxjd'jd£ ogzr8sclb richly pyxtl kgto glztoo lhxot jdxlh kfzto goxylcogslh irGi irzgl ifxhl irrational phxpxotcogfotftidyltssi4foyyrstidlysrjairdi5airsisirsorstisotxlgxtoditxyldyodyoirfoyf6oo6ftxtodo5dirstsotsotdtiditdtdotd0dtzi06czotxrid8ďrizszkxkdzirzsirz7tatjaiajrstaridyiitsurasriultkyfrshrfjmgxc nnxzageagiyrligjdnfxxgeegncgjdfruslugkgfrurjajrskt sj ulxgkxl h hotfix ydylcylxa dtllystos hdynzrj

Answered by anchu2899
0

Answer

#include<iostream>

#include <math.h>

using namespace std;

int main()

{

int n, first,last;

cin>>n;

first = n / pow(10,3);  // pow(10,digit-1)  here digit is 4

last = n%10;

cout<<first + last;

}

Explanation:

Similar questions