package com.javarush.task.task03.task0309;
/*
Сумма 5 чисел
*/
public class Solution {
public static void main(String[] args) {
int a,b,c,d,e;
a = 1;
b = 2;
c = 3;
d = 4;
e = 5;
int x1 = a + b;
int x2 = b + x1;
int x3 = c + x2;
int x4 = d + x3;
int x5 = e + x4;
System.out.println (x1) ;
System.out.println (x2);
System.out.println(x3) ;
System.out.println (x4) ;
System.out.println (x5) ;
//напишите тут ваш код
}
}
package com.javarush.task.task03.task0309;
/*
Сумма 5 чисел
*/
public class Solution {
public static void main(String[] args) {
int a,b,c,d,e;
a = 1;
b = 2;
c = 3;
d = 4;
e = 5;
int x1 = a + b;
int x2 = b + x1;
int x3 = c + x2;
int x4 = d + x3;
int x5 = e + x4;
System.out.println (x1) ;
System.out.println (x2);
System.out.println(x3) ;
System.out.println (x4) ;
System.out.println (x5) ;
//напишите тут ваш код
}
}