Java program to find the sum of first 100 numbers
int sum = 0;
for(int i = 1; i <= 100; i++) {
sum = sum + i;
}
System.out.println("Sum of first 100 numbers is : " + sum);
Java program to find the sum of first 100 numbers
int sum = 0;
for(int i = 1; i <= 100; i++) {
sum = sum + i;
}
System.out.println("Sum of first 100 numbers is : " + sum);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us