jitacm / -30DaysDevChallenge-

Welcome to the 30DayDevChallenge repository! This repository is dedicated to a month-long coding challenge designed to help developers of all levels enhance their skills through daily coding tasks and projects.
19 stars 27 forks source link

BMI_calculator/30_Days_of_Python #156

Open pratikshabhujade opened 1 month ago

pratikshabhujade commented 1 month ago

Negative BMI (Body Mass Index) Value Due to Invalid Weight Input.

When entering a negative weight, the BMI calculation returns a negative value. This should not be possible as weight cannot be negative.

Expected behavior The program should validate the input to ensure that weight is a positive number. If a negative weight is entered, it should prompt the user to enter a valid positive weight and not proceed with the BMI calculation until a valid weight is provided..

Screenshot Screenshot 2024-07-22 220358

github-actions[bot] commented 1 month ago

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our [CONTRIBUTING.md] for guidelines on contributing to this REPO.

animex007 commented 1 month ago

Go Ahead !