Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int a;
- double c;
- Console.WriteLine("Podaj potege");
- a = Int32.Parse(Console.ReadLine());
- for(int i=1;i<a;i++)
- {
- c = Math.Pow(i, a);
- Console.WriteLine("Liczba " + i + " do potegi " + a + " rowna jest " + c);
- }
- Console.ReadKey();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement