C++ Basics (3 Points)

Developed by Professor Tralie and Professor Mongan.

Exercise Goals

The goals of this exercise are:
  1. Declare methods in C++
  2. Work with loops in C++
  3. Use conditionals in C++
  4. Use basic print statements in C++
Create a method printDivisibleBy6() which takes one argument, and which prints the numbers from 6 up to and including the specified argument that are divisible by 6. Please put a space in between each number. As a hint, logical AND is also && in C++, just as it is in Java. So for a number to be divisible by 6, you should use this to check that the number has a remainder of 0 when divided by 2, and also by 3.
Welcome to our online modules system! Be sure to log in with your Urinus ID before you proceed. For example, Professor Tralie's ID is ctralie. If you are not an Ursinus student, that's fine! Just make something up, and you can still run everything