LET''S GET ACQUAINTED!




In the previous task, you had to completely record the program from scratch. It was the first type of task.

The second type of task is the task of editing an existing program.

The last type of tasks are ordinary test tasks, in which you just need to attach the file with the program or give a simple answer - as in the usual tests of our system.

In the process of studying theoretical material, most of the tasks will be of the second type.
Let's practice. Click "Close" and read the Task.

Task
Let's try to change the program.

In the 11th line of the program  a + b; replace the addition operation with the subtraction operation a and b

 
Java
1
import java.io.*;   
2
import java.util.*;   
3
public class Main   
4
{   
5
    public static void main(String[] args)   
6
    {   
7
        Scanner in = new Scanner(System.in);   
8
        PrintWriter out = new PrintWriter(System.out);   
9
        int a = in.nextInt();   
10
        int b = in.nextInt();   
11
12
    }   
13
}   
Your last submission is saved in the editor window.
     

Results:

All results: