Sesiones de PyR
what have i to do, if i want that the program always writes for example :
0+1
1+2
3+3
6+4
10+5
15+6
...
because now it just writes
1
3
6
10
15
...
and maybe if it works, can i make then
0+1=1
1+2=3
3+3=6
6+4=10
#include <iostream>
using namespace std;
int main(){
int i;
int sum = 0;
for (i = 1; i <= 100; i++){
sum = sum+i;
cout<<sum<<endl;
}
cout<<sum;
return 0;
}
1 Voto
5 RespuestasMissing code
0 Votos
3 RespuestasJava
0 Votos
4 RespuestasEn tendencia hoy
Guys help please
1 Votes
Python question
2 Votes
Python
1 Votes
Are websites hackable?
1 Votes
C# and sql
1 Votes
What course to take for AI?
0 Votes
TICTACTOE
0 Votes
Error
0 Votes
What's an unsigned int?
0 Votes