Advertisement
aggressiveviking

Untitled

Feb 13th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _04.NumbersDividedBy3WithoutReminder
  4. {
  5.     class NumbersDividedBy3WithoutReminder
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int a;
  10.             a = 1;
  11.  
  12.             while (a <= 100)
  13.             {
  14.                 a++;
  15.                
  16.                 if (a%3 == 0)
  17.                 {
  18.                     Console.WriteLine(a);                    
  19.                 }
  20.                
  21.             }            
  22.  
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement