Write a program to find greater number between two numbers using conditional operator | CODE WITH SHARAD

Write a program to find greater number between two numbers using conditional operator

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 two numbers : ");

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

printf("Greater no is = %d",(a>b)?a:b);

getch();

}


Comments


Contact