Question: Write the function introToCS330 that takes a positive integer n2 and prints a string according to the following conditions if n2 is divisible by 7,

Write the function introToCS330 that takes a positive integer n2 and prints a string according to the following conditions

if n2 is divisible by 7, it should print USB

if n2 is divisible by 3, it should print CS

if n2 is divisible by both 3 and 7, it should print USB CS 330

if n2 is a prime number other than 3 or 7, it should print Welcome!

otherwise, it should print the cube of n2

Create *DOCUMENTED* C program please

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!