Advertisement
desislava_topuzakova

01. Numbers Ending in 7 (начин 3)

Jul 25th, 2022
808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Demo
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.  
  10.             //начало: 7
  11.             //край: 997
  12.             //какво повтаряме?: печатаме
  13.             //промяна: +10
  14.  
  15.             for (int number = 7; number <= 997; number += 10)
  16.             {
  17.                Console.WriteLine(number);
  18.  
  19.             }
  20.  
  21.         }
  22.     }
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement