**Tho i have searched for correct logic on google and found it too but i am particularly confused why this logic isn\'t working. **
main()
int H,a,b; p