include <iostream>
main ()
{
int a, b;
bool found;
cout << "Enter two integers: "
cin >> a >> b;
if a > a*b && 10 < b
found = 2 * a > b;
else
{
found = 2 * a < b;
if found
a = 3;
c = 15;
if b
{
b = 0;
a = 1;
}
}
odonal01
-2
Newbie Poster
Recommended Answers
Jump to PostWell for one, you didn't use code tags. When you post code, you should put it in code tags:
[ code=cplusplus]
// Your C++ Code Here
[ /code]Secondly, your main function doesn't seem to return an int, or take command line parameters...
Third, you aren't using namespace std;, …
Jump to PostRead the forum rules, read a C++ book, read previous threads, just read something!
Chris
All 6 Replies
Comatose
290
Taboo Programmer
Team Colleague
Freaky_Chris
299
Master Poster
StuXYZ
commented:
lol @ "just read something"
+5
jbennet
1,618
Most Valuable Poster
Team Colleague
Featured Poster
Muhammad farhan
0
Newbie Poster
Freaky_Chris
299
Master Poster
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.