Question: In C, please help, Thanks! Use scanfto read in an integer, x. Print all the numbers that are divisible by 3 from 1 to x

 In C, please help, Thanks! Use scanfto read in an integer,

In C, please help, Thanks!

Use scanfto read in an integer, x. Print all the numbers that are divisible by 3 from 1 to x (inclusive). You must the mod operator (%) to check if a number is divisible by another or not. Example Output: Enter x: 15 3 6 9 12 15 Rubrics 1 point(s) - Correct implementation of scanf(). 2 point(s) - Correct implementation of loop. 2 point(s) - Correct implementation of if statement. 2 point(s) - Correct output. 3 point(s) - No syntax errors

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!