0% found this document useful (0 votes)
97 views1 page

Online Java Compiler - Programiz 66677737

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views1 page

Online Java Compiler - Programiz 66677737

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

BLACK

Lifetime access to PRO at 60% off!


FRIDAY

Programiz PRO
Online Java Compiler

[Link] Output
public static void main(String[] args)
{
6 int sum = 0;
7 for (int i = 0; i <= 10; i++) {
8
9 for (int k = i * i; k > 0; k
+= 0)
10 {
11 sum += k%10;
12 k /= 10;
13
14 }
15
16 if (sum == i) { [Link]
.println(i);
17 sum = 0;
18 }
19 }
20
21

Run

You might also like