jituTechnology

jituTechnology

Write a program to find the maximum of two numbers using conditional operators

/*A program to find the maximum of two numbers using conditional operators
programmed by:
Name: Jitendra Yadav
Roll:16
Date: 11 Jan 2011 */
#include <stdio.h>
#include <conio.h>
void main()
{
int a,b,max;
printf(“Enter the two number a and b\n”);
scanf(“%d%d”,&a,&b);
max=(a>b)? a:b;//conditionl operator
printf(“The maximum of two is %d”,max);
getch();
}

No comments yet.

Add a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.



Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

January 2026
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031