Computer Science, asked by PRADEEPMURMU98, 10 months ago

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 virenju123
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 bdiya931
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