Machine Learning
Topic:
Activity
Assignment:
01
Submitted by:
Laiba Tahir(3064)
Class:
BSCS 4th AI
Submitted to:
Mam shahida
Activity 1: Combine numbers and text
Activity 2: Take input from the keyboard and use it in your program
Activity 3: Check whether the given integer is even or not
Activity 4: Sum of values from 0 to 10 using while loop
Activity 5: Accept 5 integer values and display their sum
Flowchart Description:
1. Start
2. Initialize sum = 0, count = 0
3. Repeat until count = 5:
o Take input
o Add to sum
o Increment count
4. Print the sum
5. End
Activity 6: Keep accepting integers until 0 is entered and display their sum
Activity 7: Check if a number is prime
Activity 8: Display grade based on marks
Activity 9: Calculate factorial of a number