Learn C ProgrammingLearn ProgrammingPrograms On Decision Control StructuresResources

014. Write a program to accept two number and print largest among them in C language

By September 18, 2012 February 5th, 2018 One Comment

#include<stdio.h>

#include<conio.h>  

main()

{

int a,b;

clrscr();

printf("Enter numbers : ");

scanf("%d%d",&a,&b);

if(a>b)

printf("Largest value is....%d",a);

else

printf("Largest value is....%d",b);

getch();

}

One Comment

Leave a Reply

DEMO01