Question: C Programming! Write a program that reads integers until 0 and prints those that are multiples of 3. The input is a sequence of integers

C Programming!

Write a program that reads integers until 0 and prints those that are multiples of 3. The input is a sequence of integers that always contains at least 0 and the output will be a single line of numbers. For example, for input 2 3 4 5 6 7 8 9 0, the program will print 3 6 9. If none of numbers is a multiple of 3, the program will not print anything.

Example of input: 2 3 4 5 6 7 8 9 0

Corresponding output: 3 6 9

Example of input: 10 20 30 40 50 60 0

Corresponding output: 30 60

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!