public class Exp{
public static void main(String[] args){
int sum = 0;
for(int i = 1; i<=100; i++){
sum = sum +i;
}
System.out.println("s = " + sum);
}
}
public class T {
public static void main(String[] args) {
function1();
}
/**
*/
private static void function1() {
int i = 1,sum = 0;
while(i <= 100){
sum += i;
i++;
}
System.out.println(sum);
}
}
int result=0;
for (int i=0;i<=100;i++){
result= i+result;
}
System.out.print(result);