Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. int a;
  2. double c;
  3. Console.WriteLine("Podaj potege");
  4. a = Int32.Parse(Console.ReadLine());
  5. for(int i=1;i<a;i++)
  6. {
  7. c = Math.Pow(i, a);
  8. Console.WriteLine("Liczba " + i + " do potegi " + a + " rowna jest " + c);
  9. }
  10. Console.ReadKey();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement