Computer Science, asked by gitakumari586, 3 months ago

Write a program to input a few numbers untill zero is entered. Calculate and print the frequency of the numbers which are even numbers using WHILE and WEND​

Answers

Answered by AnindaBasu
0

CLS

INPUT NUM

C=0

WHILE NUM>0

R=NUM MOD 10

IF R MOD 2 =0 THEN

C=C+1

END IF

N=N\10

WEND

PRINT "FREQUENCY OF NUMBER "; C

END

Similar questions