#include <iostream>
#include <conio.h>
using namespace std;
int main ()
{
int s = 0;
for (int i=1; i<=100; i++)
s+=i;
cout << "Suma liczb od 1 do 100 wynosi:" << s << ".";
getch();
return 0;
}
Nie wiem czy o to ci chodziło, ale nieco poprawiłem twój kod