Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public class Program4 {
  2. public static void main(String[] args){
  3. double wrt = 2;
  4. int licznik = 0;
  5. double potega = -1;
  6. do{
  7. wrt = Math.pow(wrt, potega);
  8. licznik++;
  9. potega--;
  10. System.out.println(wrt);
  11. }
  12. while(licznik < 10);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement