Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Algorytm5 {
- public static void main(String[] args)
- {
- int a, i, x, suma;
- a = 2;
- i = 0;
- x = 4;
- suma = 0;
- for(;i < 4;)
- {
- i++;
- suma = suma + a;
- a = a + x;
- }
- System.out.println(suma);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement