import java.util.Scanner;
public class Znanija {
public static void main(String args[]) {
int n, number = 0;
Scanner input = new Scanner(System.in);
System.out.println("Write the second broder of the diapazon: ");
n = input.nextInt();
for(int i = 50; i>n-10; i-=10) {
number += i;
}
number += n;
System.out.println("\nThe sum of all numbers in the sequence 50 + 40 + 30 + 20 .... + N equals: " + number);
integer n, number = 0
print('Write the second broder of the diapazon: ')
input(n)
for i in range (50, n)
i-=10
number += i
print('\nThe sum of all numbers in the sequence 50 + 40 + 30 + 20 .... + N equals: ', number);
import java.util.Scanner;
public class Znanija {
public static void main(String args[]) {
int n, number = 0;
Scanner input = new Scanner(System.in);
System.out.println("Write the second broder of the diapazon: ");
n = input.nextInt();
for(int i = 50; i>n-10; i-=10) {
number += i;
}
number += n;
System.out.println("\nThe sum of all numbers in the sequence 50 + 40 + 30 + 20 .... + N equals: " + number);
}
}
Псевдокод:integer n, number = 0
print('Write the second broder of the diapazon: ')
input(n)
for i in range (50, n)
i-=10
number += i
number += n;
print('\nThe sum of all numbers in the sequence 50 + 40 + 30 + 20 .... + N equals: ', number);