Example & Tutorial understanding programming in easy ways.

Write a program to find the maximum of two number without using the if statement

program:


#include<stdio.h>

int main()

{

int a,b;

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

printf("Maximum is : %d",a>b?a:b);
}


output:

2 3

Maximum is: 3

Read More →