Logic:-. - Accept a number x as input.• - if x is a prime number, print "prime". - if x is not a prime number, then print "odd" if x is an odd number. - if x is not a prime number, then print "even" if x is an even number
Answers
Answered by
12
tex
/brac>
if x is not a prime number, then print "odd" if x is an odd number. - if x is not a prime number, then print "even" if x is an even number
Similar questions