The terrorist hijacked the famous Taj hotel in Mumbai and it has many VIPs, children, and family members. The hotel manager decides to inform the police but he wants to send the message without the knowledge of terrorists. So, he sends the message in the form of an encrypted number. Unfortunately, the message is received by the terrorist. The terrorist has to enter the number if they want to read the message. If the resultant of adding the encrypted number and number entered by a terrorist is a perfect number, then they can read the message. Otherwise, they can't read the message.
Answers
Answer:
Explanation:
Eleven years ago i.e..,on the night of November 26, 2008, ten Pakistan-based terrorists launched a coordinated shooting and bombing attacks in Mumbai at five major locations, killing 166 people and injuring over 300 people. The terrorists targeted five prominent places of the financial capital Chatrapati Shivaji Terminus railway station, Cama Hospital, Nariman House business and residential complex, Leopold Cafe, Taj Hotel and Tower and the Oberoi-Trident Hotel.
The Lashkar-e-Taiba terrorists reached Mumbai on a hijacked fishing trawler from a Pakistani port in Karachi. While nine terrorists were killed in the four-day operation by the armed forces, the lone terrorist Ajmal Kasab was captured alive and sentenced to death at Yerwada Central Jail in Pune in 2012. The terrorists hijacked cars, including a police van, and split into different groups to carry out the attacks. The terrorists used automatic weapons and grenades to storm the sites.The Chhatrapati Shivaji terminus was the site of the first attack. At around 9.20 p.m. Kasab and another Pakistani terrorist opened indiscriminate fire into the teeming crowds at the station. The attack lasted about 90 minutes, leaving 58 people dead and over 100 injured. The second attack was reported about 8-10 minutes later -- the Nariman House business and residential complex housing the Jewish Chabad Lubavitch outreach centre. Before attacking it, the terrorists blew up a gas station. They killed the rabbi, his wife and five Israeli hostages during a three-day siege. The two-year-old child of the rabbi survived after his Indian nanny Sandra Samuels smuggled the baby to safety.At around 9.40 p.m., four terrorists struck the upscale and pop leplod cafe
Answer:
#include<iostream>
int main()
{
int a,b,num,i,div,sum=0;
std::cin>>a>>b;
num=a+b;
for(i=1;i<num;i++)
{
div=num%i;
if(div==0)
sum=sum+i;
}
if(sum==num)
std::cout<<"They can read the message";
else
std::cout<<"They can't read the message";
return 0;
}
Explanation: