Skip to content
Basic
- WAP to read 2 numbers and print addition of those two numbers
- WAP to read 2 numbers and print subtraction
- WAP to read 2 numbers and print multiplication
- WAP to read 2 numbers and print division
- WAP to read 2 numbers and print modulus (Remainder)
- WAP to read radius and print area and circumference of circle
- WAP to read length and breadth and print area and perimeter of rectangle
Conditional Statement (if else)
- WAP to read a number and check if its positive or negative
- WAP to read a number and check it is even or odd
- WAP to read 2 numbers and find greatest among them
- WAP to read 3 numbers and find greatest among them
- WAP to read marks of 5 subjects and check the student is pass or failed
- add validation for marks less than 0
- add validation for marks greater than 100
Loops
- WAP to print hello world 10 times with numbering
- WAP to print square of numbers from 1 to 10
- WAP to print numbers from 1 to given number
- WAP to print cube of numbers from 1 to given number
- WAP to read a number and print table of that number
- WAP to execute Fizz Buzz Problem / Print number 1 to 100
- if number is divisible by 3 then print Fizz
- if number is divisible by 5 then print Buzz
- if number is divisible by both 3 and 5 then print Fizz Buzz
- WAP to execute lift program of 20 floor
- print number with delay of 1 sec (use time module’s sleep method)
- skip 13 number
- break after printing 13
- WAP to create random jackpot number and take input from user to guess the number. Based on level the attempt to guess the number should change
- Easy – 20 attempts
- Medium – 10 attempts
- Difficult – 5 attempts