CS Project
CS Project
Date
Student Sign
___________
____________
Content
Output:
Program 2: Find the Largest
of Three Numbers
Topic: Decision Making (if-else statements)
Explanation:
This program determines the largest of three numbers
using conditional statements. It demonstrates the use of
if-elif-else.
Input:
Output:
Program 3: Check if a Number is
Prime
Topic: Loops and Conditional Statements
Explanation:
This program checks whether a given number is prime or
not by dividing it by all numbers less than itself. It
introduces the for loop and else in loop constructs.
Code:
Input:
Output:
Code:
Input:
Output:
Code:
Input:
Output:
Program 6: Sum of Digits of a
Number
Code:
Input:
Output:
Input:
Output:
Code:
Input:
Output:
Program 9: Find the GCD of Two
Numbers
Code:
Input:
Output:
Code:
Input:
Output:
Code:
Input:
Output:
Program 12: Generate a
Multiplication Table
Topic: Loops
Explanation:
This program generates the multiplication table for any number
entered by the user. It demonstrates the use of for loops.
Code:
Input:
Output:
Code:
Input:
Output:
Code:
Input:
Output:
Program 15: Count Vowels in a
String
Code:
Input:
Output:
Program 16: Calculate Area of a
Circle
Code:
Input:
Output:
Code:
Input:
Output:
Topic: Strings
Explanation:
This program counts the number of words in a string inputted by
the user. It demonstrates string splitting and counting.
Code:
Input:
Output:
Program 19: Check if a Number is
Even or Odd
Code:
Input:
Output:
Program 20: Calculate the Power of
a Number
Code:
Input:
Output: