The document contains questions asking to write programs (wap) to perform various tasks: 1) Print numbers from 1 to 100, 2) Print even numbers from 1 to 20, 3) Print the cube of numbers from 1 to 5, 4) Check if a number is prime, 5) Print the factorial of a number, 6) Ask a user for a number and print its table, 7) Print three patterns - an ascending star pattern, a descending number pattern, and a letter pattern that gets smaller on each line.
The document contains questions asking to write programs (wap) to perform various tasks: 1) Print numbers from 1 to 100, 2) Print even numbers from 1 to 20, 3) Print the cube of numbers from 1 to 5, 4) Check if a number is prime, 5) Print the factorial of a number, 6) Ask a user for a number and print its table, 7) Print three patterns - an ascending star pattern, a descending number pattern, and a letter pattern that gets smaller on each line.
The document contains questions asking to write programs (wap) to perform various tasks: 1) Print numbers from 1 to 100, 2) Print even numbers from 1 to 20, 3) Print the cube of numbers from 1 to 5, 4) Check if a number is prime, 5) Print the factorial of a number, 6) Ask a user for a number and print its table, 7) Print three patterns - an ascending star pattern, a descending number pattern, and a letter pattern that gets smaller on each line.