Search This Blog

Translate

C program to find bigger of two numbers using parameter macro with ternary operators

C program to find bigger of two numbers using  parameter  macro with ternary operators 
C program to find bigger of two numbers using  parameter  macro using ternary operators 
C program to find largest of two numbers using  parameter  macro with ternary operators 
C program to find  largest  of two numbers using  parameter  macro using ternary operators 
C program to find Maximum of two numbers using  parameter  macro with ternary operators 
C program to find Maximum t  of two numbers using  parameter  macro using ternary operators


#include
#include
#define NO1(x,y)(x>y?x:y)
void main()
{
int n1,n2,ans;
clrscr();
printf("\n\nEnter First number=");
scanf("%d",&n1);
printf("\n\nEnter Second number=");
scanf("%d",&n2);
ans=NO1(n1,n2);
printf("\n\nThe Bigger number is=%d",ans);
getch();
}



C program to find bigger of two numbers using  parameter  macro with ternary operators 
C program to find bigger of two numbers using  parameter  macro using ternary operators 
C program to find largest of two numbers using  parameter  macro with ternary operators 
C program to find  largest  of two numbers using  parameter  macro using ternary operators 
C program to find Maximum of two numbers using  parameter  macro with ternary operators 
C program to find Maximum t  of two numbers using  parameter  macro using ternary operators

C Program example List

Google+ Badge