Computer Science, asked by sbmshukla, 6 days ago

Peter Rabbit lives in a colony. He is the only rabbit in his colony who is not able to hop. On his 5th birthday, his father rabbit gifted him a pogo stick as he could not jump like the other rabbits. He is so excited to play with the pogo stick. The pogo stick hops one unit per jump. He wanders around his house jumping with pogo sticks. He wants to show the pogo stick to his friends and decides to go using pogo sticks. Write a program to find the number of hops needed to reach his friends' houses. Assume that Peter Rabbit's house is in the location (3,4).
#include
int main()
{
int a=3,b=4,c,d,x,y;
std::cin>>x;
std::cin>>y;
c=x-a;
d=y-b;
(c>d)?std::cout<return 0;
}

Answers

Answered by Anonymous
0

Answer:

I don't no

I don't no

I don't no

Similar questions