Closed geetanjali-22 closed 2 years ago
Tnq u
On Wed, 4 Nov 2020, 16:03 NIKHIL SRIVASTAV, notifications@github.com wrote:
@Nikhil-Srivatsav commented on this pull request.
In Program using nested if else https://github.com/justin-lathrop/c/pull/149#discussion_r517227849:
@@ -0,0 +1,20 @@ +#include
+int main() {
- double n1, n2, n3;
- printf("Enter three numbers: ");
- scanf("%lf %lf %lf", &n1, &n2, &n3);
- if (n1 >= n2) {
- if (n1 >= n3)
- printf("%.2lf is the largest number.", n1);
- else
- printf("%.2lf is the largest number.", n3);
- } else {
- if (n2 >= n3)
it needs to be if else if else ladder then it may work out kindly see that.and make necessary changes
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/justin-lathrop/c/pull/149#pullrequestreview-523208994, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARSXLXTEBK5GOY3UY4HXDRDSOERHDANCNFSM4SWM6LOA .
Program to find largest numbers using c