Sunday 1 November 2015

Find out largest number from give 3 number in C Language .

Find out largest number from give 3 number in C Language . #include<stdio.h> #include<conio.h> Void main() { ... thumbnail 1 summary

Find out largest number from give 3 number in C Language .

#include<stdio.h>
#include<conio.h>
Void main()
{
            Int a,b,c;
            Printf(“enter value of a,b,c:”);
            Scanf(“%d%d%d”,&a,&b,&c);
            If(a>b)
            {
                        If(a>c)
                        {
                                    Printf(“a is max”);
                        }
                        Else
                        {
                                    Printf(“b is max:”);
                        }
            }
            Else
            {
                        If(b>c)
                        {
                                    Printf(“b is max”);
                        }
                        Else    
                        {
                                    Printf(“c is max”);
                        }
}


}

No comments

Post a Comment