Computer Science, asked by jony300984, 4 months ago

15. Wap to print the factorial of first 20
even numbers​

Answers

Answered by allysia
0

Answer:

USING PYTHON:

\\\tt fact=1 \\\ttfor\ i \ in \ range (1,41): \\\tt{\qquad    fact*=i }\\\tt{\qquad    i f\  i \%2==0:   }\\\tt                {\qquad{\qquad print (i/2, "The\ factorial\ of",i," is", fact)}}\\\tt   {\qquad else:}\\\tt    {\qquad {\qquad    pass}}

If you want you can write a program to generate first 20 elements and not take lazy steps like I did.

Similar questions