Solved CSE 15: Discrete Mathematics Laboratory 1

$25.00

Original Work ?

Download Details:

  • Name: Lab_01-iojdjg.zip
  • Type: zip
  • Size: 203.82 KB

Category: Tags: , You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (1 vote)

Modified Hello World Write a Python program that asks the user for his/her name, and prints out a greeting message of the form “Hello, “, where is the input received from the user. Integer Classification Write a Python program that asks the user to enter an integer. Your program should print ODD if the integer is odd, and EVEN if the integer is even. Reminder: an even integer can be represented as 2x, and an odd integer can be represented as 2x + 1, where x ∈ Z. More Even and Odd Write a Python program that asks the user to enter 10 integers, and outputs the largest odd number among them. If no odd numbers were entered, your program should output a message saying: “No odd numbers were entered”.