Advertisement
Guest User

oef41

a guest
Oct 21st, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 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 _41SomTweeCijfersDelers
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int som;
  14.             for (int i = 10; i <= 99; i++)
  15.             {
  16.  
  17.                 som = (i / 10) + (i % 10);
  18.  
  19.                 if (i % som == 0)
  20.                 {
  21.                     Console.WriteLine(i);
  22.                 }
  23.             }
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement