Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Program4 {
- public static void main(String[] args){
- double wrt = 2;
- int licznik = 0;
- double potega = -1;
- do{
- wrt = Math.pow(wrt, potega);
- licznik++;
- potega--;
- System.out.println(wrt);
- }
- while(licznik < 10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement