Untitled
unknown
plain_text
8 months ago
481 B
7
Indexable
public class SumExample {
public static void main(String[] args) {
// Declare three integer variables
int number1 = 50; // First number
int number2 = 60; // Second number
int number3 = 40; // Third number
// Calculate the sum of the three numbers
int sum = number1 + number2 + number3;
// Output the result
System.out.println("Sum is " + sum); // Display the sum
}
}
Editor is loading...
Leave a Comment