Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
GRR WORK DARNIT
SUBMITTED BY:
Guest
DATE:
April 5, 2013, 8:10 p.m.
FORMAT:
C++
SIZE:
677 Bytes
Raw
Download
Tweet
HITS:
1971
Go to comments
Report
#include
<iostream>
#ifdef WIN32
#include
<windows.h>
#endif
using
namespace
std
;
int
main
()
{
int
a
;
int
b
;
cout
<<
"Enter a number: "
;
cin
>>
a
;
if
(
a
==
1
)
{
cout
<<
"Enter a second number: "
;
cin
>>
b
;
if
(
b
==
1
)
{
cout
<<
"You selected 1,1 "
<<
endl
;
}
else
if
(
b
=
2
)
{
cout
<<
"You selected 1,2"
<<
endl
;
}
else
{
cout
<<
"I have no idea what you pressed!"
<<
endl
;
}
}
system
(
"PAUSE"
);
return
0
;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus