Home
О нас
Products
Services
Регистрация
Войти
Поиск
vishnya0312
@vishnya0312
June 2022
1
9
Report
Помогите, пожалуйста. Срочно надо. Java Script. Зпдан массив A(n). Вычислить a1 + 2*a2 + n*an
Please enter comments
Please enter your name.
Please enter the correct email address.
Agree to
terms of service
You must agree before submitting.
Send
Answers & Comments
Archimedes04
Ввод и вывод, думаю, сделаете сами, какой вам нужен.
var n = 5;
var a;
for(var i = 1; i <= n; i++) {
a[i] = 4;
}
var b = a[1] + 2*a[1] + n*a[n];
2 votes
Thanks 1
vishnya0312
Спасибо огромное). Подскажите, пожалуйста, как сделать вывод в консоль?
Archimedes04
console.log(b);
vishnya0312
Ещё раз огромное спасибо)
×
Report "Помогите, пожалуйста. Срочно надо. Java Script. Зпдан массив A(n). Вычислить a1 ..."
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
Helpful Links
О нас
Политика конфиденциальности
Правила и условия
Copyright
Контакты
Helpful Social
Get monthly updates
Submit
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var n = 5;
var a;
for(var i = 1; i <= n; i++) {
a[i] = 4;
}
var b = a[1] + 2*a[1] + n*a[n];