Computer Science, asked by Vivekvijay026, 9 months ago

Dora is so much interested in gardening and hence she plants more trees in her garden. She plants trees in a rectangular fashion with the order of rows and columns and numbers the trees in a row-wise order. She planted the mango tree only in the 1st row, 1st column and last column. So, given the tree number, your task is to find out whether the given tree is a mango tree or not? Now, write a c++ program to check whether the given number denotes a mango tree or not.

Answers

Answered by avbansal0909
3

Answer:

it will be a mango tree as in first line there will be a mango tree as we will follow it like from first line so we will consider it like on all the first line there will be a mango tree.

Answered by Pranjalbarhate
3

Answer:please give me the code

Explanation:

Similar questions