Untitled
unknown
plain_text
2 months ago
481 B
6
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