Cmps201 Lab 2
Cmps201 Lab 2
Sample Runs:
Input sides of triangle: 3 4 5
Triangle is a right triangle
Part b: in this part of the exercise, you have to take a 3 digits number from the user, but
now you have to print the multiplication of all digits.
Sample Run:
Please enter a 3 digits number: 451
Multiplication of digits: 20
Sample Runs:
Enter the name of a file: test.txt
The file type is txt
Page 2
Enter the name of a file: music.mp3
The file type is mp3
Question 7 Practice-It
Topics: All Topics
Solve the following exercise on practice it: University of Washington CSE 142 (CS1) / Lab
4 (ifelse, Scanner, and return) / area.
Make sure to create an account on practice-it first.
Best wishes
Page 3