I need output is that,
Output:
Enter the numbers (3 numbers)= 4,6,3 (a,b,c) < integer
a is middle
b is big and
c is small.
More example: 6,6,4 << a,b,c integer
a and b is same and c big small from them.
<<<< like this! I need program which I can't do by myself. I am newbie. I start c program. So, please if you can better to do but, if else statement and by using C program.
Thanks in advance
Moved from "answer" by PIEBALDconsult -- some trouble with cleaning up the bad XML encoding, there may still be errors caused by this, but there are certainly bugs in the original. I did what I could.
I am sorry! Did you mind with my talks? Well, I am really sorry again :)
Any way, I did this!
#include <stdio.h>
#include <conio.h>
int main ()
{ int a,b,c;
printf("\nEnter 3 numbers:");
scanf("%d %d %d",&a,&b,&c);
if (a==b && a<c mode="hold" ) {
printf ("a and b is same and small from c");
}
else if (a==b && a>c || b>c)
{
printf ("a and b is same and big from c");
}
else if (a==c && a<b mode="hold" ) {
printf ("a and c is same and small from b");
}
else if (a==c && a>b || c>b)
{
printf ("a and c is same and big from b");
}
else if (b==c && b>a || c>a)
{
printf ("b and c is same and big from a");
}
break;
else if ((b==c) && (b<a)) {
printf ("b and c is same and small from a");
}
else if (a/b && b/c )
{
printf ("a is big\n b is middle \n c is small");
}
else
{
printf (" is nagitive");
}
getch ();
}
But I don't know where is that error. Error is coming. Please you may check. And this is incomplete yet.