Suma de los primeros 100 números naturales
#include<iostream>
using namespace std;
int main(){
int i = 0;
int sum = 0;
int n = 100;
while(i<=n){
sum = sum + i;
i++;
}
cout << sum;
return 0;
}
gauravvadkine