Computers and Technology

// Exercise 4.16: Mystery. java 2 public class Mystery
3 {
4 public static void main(String[] args)
5 {
6 int x = 1;
7 int total = 0;
8
9 while (x <= 10)
10 {
11 int y = x * x;
12 System. out. println(y);
13 total += y;
14 ++x;
15 }
16
17 System. out. printf("Total is %d%n", total);
18 }
19 } // end class Mystery

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:30, jngonzo1226
Which of the following statements best describes it careers?
Answers: 2
image
Computers and Technology, 22.06.2019 21:30, mima851
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
image
Computers and Technology, 23.06.2019 03:00, minelly1717
Your business be in google top rank. more the rank more the business leads. for best seo and digital marketing services be confident to contact you can get best seo solutions by assistance experts provide digital marketing, website development, seo expert services and social media internet seo expert services your branding solutions. seo expert services ,best seo expert services, online seo expert services,
Answers: 3
image
Computers and Technology, 23.06.2019 04:00, china236
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
Do you know the correct answer?
// Exercise 4.16: Mystery. java 2 public class Mystery
3 {
4 public static void main(St...

Questions in other subjects:

Konu
Biology, 12.04.2021 18:40
Konu
Mathematics, 12.04.2021 18:40
Konu
Chemistry, 12.04.2021 18:40