/*********************************************************** count.ch Introduction to Ch This program finds how many multiples of 3 are between zero and one hundred. ************************************************************ Copyright 2014 SoftIntegration Inc. http://www.softintegration.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ***********************************************************/ // initialize variables int x, counter; // assign variables values x = 3; counter = 0; // while x is less than 100, run loop while (x < 100) { printf("%d\n", x); counter = counter+1; // increase count everytime program enters loop x = x + 3; // increase x by 3 } printf("There are %d multiples of 3 between zero and one hundred.\n", counter);