answersLogoWhite

0

#include<stdio.h>

void main()

{

int a,b;

printf("enter two number");

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

{

if(a>b)

printf("a is big");

}

else

printf("b is big");

getch();

}

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

JudyJudy
Simplicity is my specialty.
Chat with Judy
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
ReneRene
Change my mind. I dare you.
Chat with Rene

Add your answer:

Earn +20 pts
Q: How do you find the greatest number of 2 in C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Write an algorithm and draw a corresponding flowchart to find the greatest number and its position among the 6 given numbers?

Algorithm Step1: Read A, B, C Step2: If A &gt; B is True, then check whether A &gt; C, if yes then A is greatest otherwise C is greatest Step3: If A &gt; B is False, then check whether B &gt; C, if yes then B is greatest otherwise C is greatest Give the Flowchart Answer


Draw a flow chart to find out the greatest number among the three given numbers ab c?

draw a flowchart to find the biggest number among the 3 numbers


Write a program in COBOL to find the largest of N number?

identification division. program-id. greatest. environment division. data division. working-storage section. 77 a pic 999. 77 b pic 999. 77 c pic 999. procedure division. greatest. display "ENTER THE THREE NUMBERS:". accept a. accept b. accept c. if a &gt; b and a &gt; c display a "is greatest" else if b &gt; c display b "is greatest" else display c "is greatest". display " thank you". stop run.


Write a program to find greatest of three number using conditional operator in c?

To find greatest of 3 digits in one line #includ&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int a,b,c; printf("enter a,b,c:); scanf("d%d%d",&amp;a,&amp;b,&amp;c); printf("greatest no: %d"(a&gt;b)?((a&gt;c)?a:c):((c&gt;b)?c:b)); printf("have a nice day"); getch(); }


You want to write a simple without using pointer or array c program which will print greatest number when you give 20 number?

i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?