Advertisement
myloyo

3.4.15

Sep 14th, 2023 (edited)
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp2
  8. {
  9.     class Program
  10.     {
  11.         static void Main()
  12.         {
  13.             int i = 11;
  14.             int a, b;
  15.             while (i < 100)
  16.             {
  17.                 a = i % 10;
  18.                 b = (i / 10) % 10;
  19.                 if (a % 2 != 0 && b % 2 != 0)
  20.                 {
  21.                     Console.Write("{0} ", i);
  22.                 }
  23.                 i += 2;
  24.             }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement