Write a program to input an integer and check whether it is a 3-digit number or not . If it is , check
whether the sum of first and last digit is even or odd number. make a program
Answers
Answered by
0
Answer:
1) CLS
input " enter a number"; a
if a > 0 then
print " number is negative integer "
else if a < 0 then
print " positive integer "
end if
end
2) CLS
input " enter a number "; a
if a mod 2 = 0 then
print " number is even "
else if a mod 2 = 1 then
print " number is odd "
end
和老婆
for QBasic
Answered by
0
Explanation:
CLS
input" anter a numbar" a
if a > 0 then
"print number is negative integer"
else if a <0then
print positive integer.
end
Similar questions
Physics,
5 months ago
Physics,
5 months ago
Social Sciences,
10 months ago
English,
10 months ago
Math,
1 year ago