TGViewer
Channel Public Channel
Java

Java

@java_sup

Программирование на Java.

По всем вопросам: @un_ixtime
Subscribers
1.49K
Photos
223
Videos
5
Links
902

Showing posts older than #38 · Back to latest

Older Posts 20 shown
Post #33 77
Post #27 71
Программа принимает значения двух чисел и выводит их сложение.

import java.util.Scanner;

class AddNumbers
{
public static void main(String args[])
{
int x, y, z;
System.out.print("Enter two integers to calculate their sum : ");
Scanner in = new Scanner(System.in);
x = in.nextInt();
y = in.nextInt();
z = x + y;
System.out.println("Sum of entered integers = " + z);
}
}
Post #25 73
Older posts →
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →