Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
test1
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { int num_1 = 5; int num_2 = 10; // Chamada de Métodos System.out.println("total da soma="+Soma( num_1, num_2 )); System.out.println("total da subtração="+Subtracao(num_1, num_2)); System.out.println("total da multiplicação="+Multiplicacao(num_1, num_2)); } // Métodos public static int Soma(int num_1, int num_2) { return(num_1 + num_2); } public static int Subtracao( int num_1, int num_2 ) { return(num_1 - num_2); } public static int Multiplicacao( int num_1, int num_2 ) { return(num_1 * num_2); } }
run
|
edit
|
history
|
help
0
Trapping Rain Water
Leetcode 937. Reorder Log Files๐ฎ๐ณ๐ฎ๐ณ๐ฎ๐ณ
PE #7
contoh 43
3e
kth smallest element
sq-buzz
Display Page
Engine Java
Reverse Number in java