Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
To input three integers a, b, and c, and determine which number is the biggest
SUBMITTED BY:
Guest
DATE:
Oct. 12, 2013, 1:47 a.m.
FORMAT:
C++
SIZE:
639 Bytes
Raw
Download
Tweet
HITS:
1291
Go to comments
Report
#include
<stdio.h>
int
main
()
{
int
a
;
int
b
;
int
c
;
printf
(
"
\n
Please enter three integers : "
);
scanf_s
(
"%d %d %d"
,
&
a
,
&
b
,
&
c
);
if
(
a
>
b
)
{
if
(
a
>
c
)
{
printf
(
"
\n
%d is the biggest."
,
a
);
}
else
{
printf
(
"
\n
%d is the biggest."
,
c
);
}
}
else
{
if
(
b
>
c
)
{
printf
(
"
\n
%d is the biggest."
,
b
);
}
else
{
printf
(
"
\n
%d is the biggest."
,
c
);
}
}
getchar
();
getchar
();
return
0
;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus