Yachkov

Number ending in 7

Feb 4th, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.66 KB | None | 0 0
  1. using System;
  2. using System.ComponentModel;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.Design;
  5. using System.Globalization;
  6. using System.Net.Http.Headers;
  7. using System.Reflection;
  8. using System.Runtime.ConstrainedExecution;
  9. using System.Security.Cryptography;
  10.  
  11.  
  12. namespace SomeExcercises
  13. {
  14.     class Program
  15.     {
  16.         static void Main(string[] args)
  17.         {
  18.             int n = int.Parse(Console.ReadLine());
  19.  
  20.             for (int i = 0; i < 1000; i++)
  21.             {
  22.                 if (i % 10 == 7)
  23.                 {
  24.                     Console.WriteLine(i);
  25.                 }
  26.             }
  27.  
  28.         }
  29.     }
  30. }
  31.  
  32.  
  33.  
  34.  
Advertisement
Add Comment
Please, Sign In to add comment