Advertisement
Kuncavia

Loops-From1to1000(7)

Dec 27th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5.     static void Main(string[] args)
  6.     {
  7.         for (int a = 0; a < 1000; a++)
  8.         {
  9.             if (a % 10 == 7)
  10.             {
  11.                 Console.WriteLine(a);
  12.             }
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement