class suma
{
public static void main(String[]args)
int suma, i;
suma=0;
for(i=1; i<=100; i++)
suma=suma+i;
}
System.out.println("La suma es:" + suma);
Copyright © 2024 Q2A.ES - All rights reserved.
Answers & Comments
Verified answer
class suma
{
public static void main(String[]args)
{
int suma, i;
suma=0;
for(i=1; i<=100; i++)
{
suma=suma+i;
}
System.out.println("La suma es:" + suma);
}
}