#include <bits/stdc++.h>
typedef std::string s;
s isEvenOdd(int n) {
return (n%2==0) ? "Even" : "Odd";
}
int main(int argc, char* argv[]) {
int x; std::cin>>x;
std::cout << isEvenOdd(x) << std::endl;
return 0;
}
Answer:
Explanation:
var n : integer;
function IsEvenOdd (n : integer): boolean;
begin
if odd (n) then Result := true
else Result := false;
end;
begin
Write (' n = '); ReadLn (n);
WriteLn (' ', IsEvenOdd (n));
end.
What is output if the user types in 7? Click all that apply.
Based on the code that is given below, the output if the user types in 8 is option C: C.
What is the line of code about?The code above is an if statement: A will not be printed since the user had specified x = 8, which does not satisfy the criterion x!= 8 (!= stands for not equal).
Since x must be greater than or equal to 10 in order to satisfy the criterion for "B" to be printed, "B" will not be printed because x does not meet the condition.
Also x is less than 10, the requirement of x10 is satisfied, and "C" will be printed as a result.
Learn more about coding from
https://brainly.com/question/20312196
#SPJ1
See correct question below
x = int (input ("Enter a number: "))
if (x != 8):
print ("A")
if (x >= 10):
print ("B")
if (x < 10):
print ("C")
if (x % 2 == 1):
print ("D")
What is output if the user types in 8? Click all that apply.
A
B
C
D
4. Some programs add extra characters,
called a(n)________, to
a file name.
Answer:
big letters
Explanation:
in order for the file to be more impacable