C# Program to list and count of numbers that are divisible by 3, 7 – C# Programming Example
Basic C# Console For Loop If Else Statement

C# Program to list and count of numbers that are divisible by 3, 7

In this article we find the list and  count of the numbers between 1,100 that numbers are divisible by 3, 7.

In this example we used for loop and if statement for solve the issue.

Variables are defined in the first row. In the next lines, values are assigned to these variables.  In the loop “if statement” checks the number is divisible by 3, 7 whether is number or not.

In the last line we print the result of processing on the screen.

Source code:

Output:

You can find more similar examples of programming for this programming language in the site.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: