Код: Выделить всё
import java.util.Scanner;
class Main {
public static int iamSuffering(int q, int z , int x) {
int result = q + z + x;
return result;
}
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("give me number a");
int a = s.nextInt();
System.out.println("give me number b");
int b = s.nextInt();
System.out.println("give me number c");
int c = s.nextInt();
int mama = a + b + c;
System.out.println("the sum between the numbers you gave " + mama);
System.out.println("la logique de fous est:" + iamSuffering( 'a','b','c') );
}
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... ect-result
Мобильная версия