Question: introToCs 3 3 0 ( n ) Write the function introTOCS 3 3 0 that takes a positive integer n and prints a string according

introToCs330(n)
Write the function introTOCS330 that takes a positive integer n and prints a string according to the following conditions
if n is divisible by 7, it should print " UAB "
if n is divisible by 3, it should print "CS"
if n is divisible by both 3 and 7, it should print "UAB CS 330"
if n is a prime number other than 3 or 7, it should print "Go Blazers"
otherwise, it should print the cube of n
 introToCs330(n) Write the function introTOCS330 that takes a positive integer n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!