Write a program to find greater number between two numbers. | CODE WITH SHARAD

Write a program to find greater number between two numbers.

Written by Sharad Raj on 13th of March, 2018

BASIC PROGRAMS   C LANGUAGE PROGRAMS

PROGRAM CODE

#include<stdio.h>

#include<conio.h>

void main()

{

int a,b;

clrscr();

printf(“enter any two numbers : “);

scanf(“%d%d”,&a,&b);

if(a>b)

{

printf(“%d is greater.”,a);

}

else

{

printf(“%d is greater.”,b);

}

getch();

}


Comments


Contact