Hi again!
I have these four different if-then that I hope someone could help me with.
int i, j;
cin>> i>> j;
if (condition) (
court << "The condition is true!" <<endl;
)
Create conditions so that the condition is true if
a) j is not more than 5 numbers from i.
b) j is within a range of + i.
c) is 1 or 1
and j have the same sign as i. (0 positive)
d) is even and j is odd and less than i.
a)
int i, j;
cin>> i>> j;
if (j>i+5) {
court << "The condition is true!" <<endl;
b)
int i, j;
cin>> i>> j;
if (j==i, i+) {
court << "The condition is true!" <<endl;
c)
int i, j;
cin>> i>> j;
if (j==1, i==1) [
court << "The condition is true!" <<endl;
d)
int i, j;
cin>> i>> j;
if (i%2 ==0 && jtal%1 ==0 && j<i) {
court << "The condition is true!" <<endl;
Can anyone help me to fix these if-then's :/