program to largest of two numbers

642
program to largest of two numbers
#include<stdio.h> 
#include<conio.h> 
void main() 
{ 
   int a,b;     /* for two numbers a & b */ 
   clrscr();
   printf("Enter the numbers \n"); 
   scanf("%d%d",&a,&b); 
   if(a>b)    /* check for a is largest and gives true   
                  when a is largest otherwise false */ 
       printf("largest=%d\n",a);
    if(b>a)       /* check for b is largest and gives true   
                     when b is largest otherwise false */ 
        printf("largest=%d\n",b);
 getch(); 
} 
   output 1: 
    Enter the numbers 15 17 
    largest=17 
   output 2: 
    Enter the numbers 40 35 
    largest=40

 

 

 

program to largest of two numbers program to find largest of two numbers in c program largest of two numbers write a program to find largest of two numbers largest number program in c largest between two numbers