Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- for (int i = 1; i < 10; i++)
- {
- for (int j = 1; j < 10; j++)
- {
- int liczba = 10*i + j;
- //Console.WriteLine(String.Format("{0}{1}", i, j));
- int iloczyn = i * j;
- int reszta = liczba % iloczyn;
- if (reszta == 0)
- {
- Console.WriteLine("Liczba={0}", liczba);
- Console.WriteLine("Iloczyn={0}", iloczyn);
- Console.WriteLine("Reszta={0}", reszta);
- }
- }
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement