Untitled
Anonymous
plain_text
02/27/2025 11:44 AM
644 B
20
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