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;
- namespace primek
- {
- class Program
- {
- static void Main(string[] args)
- {
- string a;
- int b, i=1, c=0;
- Console.Write("Sz?m: ");
- a = Console.ReadLine();
- b = Convert.ToInt32(a);
- do
- {
- if(i % b == 0)
- {
- Console.WriteLine(i);
- c++;
- }
- i++;
- }while(c < 10);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement