Skip to content

SauravRai18/ASSIGNMENT-2-Module-3-Control-Structures-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ASSIGNMENT-2-Module-3-Control-Structures-in-Python

Task 1: Check if a Number is Even or Odd Problem Statement: Write a Python program that:

  1. Takes an integer input from the user.
  2. Checks whether the number is even or odd using an if-else statement.
  3. Displays the result accordingly.

Task 2: Sum of Integers from 1 to 50 Using a Loop

Problem Statement: Write a Python program that:

  1. Uses a for loop to iterate over numbers from 1 to 50.
  2. Calculates the sum of all integers in this range.
  3. Displays the final sum.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages