answersLogoWhite

0

Using if-else statement

#include<stdio.h>

#include<conio.h>

int main(void)

{

long int n,i;

clrscr();

printf("\n Enter any two nos.");

scanf("%ld%ld",&n,&i);

if(n>i)

printf("\nThe largest no. is=%ld",n);

else

printf("\nthe largest no. is=%ld",i);

getch();

return 0;

}

using ternary operator

#include<stdio.h>

#include<conio.h>

int main(void)

{

int n,i,a;

clrscr();

printf("\n Enter any two nos.");

scanf("%d%d",&n,&i);

a=(n>i?n:i);

printf("\nThe largest no. is=%d",a);

getch();

return 0;

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Protocol that specifies how some mobile devices can display internet content?

WAP (Wireless Application Protocol)


What is a wap code?

Samsung s5233 wap code


Can anybody do theseCan anybody do these WAP in qbasic to display 1 15913 999 2 1491625 100 3 50454035 0 4 1x2 plus 2x3 plus 3x4 plus 9x10 2 WAP to find the?

Research did not yield any reasonable solution to your question.


How do i get wap on my phone?

To get wap on your mobile phone, simply get in touch with your service provider. The provider will give you instructions on how to get wap.


What is the full form of wap?

WAP is Wireless Application Protocol


What are the feature of WAP?

What are the feature of WAP?"


What is Fetty Wap's occupation?

Fetty Wap is a/an Rapper singer songwriter


When was Fetty wap born?

Fetty Wap was born on June 07, 1991


When is Fetty Wap's birthday?

Fetty Wap was born on June 07, 1991


Examples of WAP devices?

See here: http://www.palowireless.com/wap/devices.asp


How do you make my own wap chat site?

WAP sites are websites that are written in, or dynamically converted to, WML (Wireless Markup Language) and accessed via the WAP browser. A WAP chat site will allow you to chat with people from all around the world through the convenience of your WAP mobile device. With WAP Chatrooms you can make a place(s), where WAP users can chat in real time. You can set up a range of chat rooms so that your guests can find people who have similar interests.


Yes I want 3rd semester question paper from Msc IT Of WAP?

Write the future of the WAP