Sesiones de PyR
is there anything wrong in this please answer
import string
from random import *
letters = string.ascii_letters 
digits = string.digits
chars = letters + digits 
min_length = 9 
max_length = 15
password = "".join(choice(chars) for x in range(randint(min_length, max_length)))
print(password)
 1 Voto
 4 RespuestasHello can you help me?
 0 Votos
 3 RespuestasCan anyone help me to code this
Write a method 'timesTable()' which accepts an integer value num from the keyboard and uses it to print 'times table' of itself in a structured format. Your output must include a header row. For example, if the user enters 5, your program's output should be:
5 Times Table
1     5       5
2     5      10
3     5      15
4     5      20
5     5      25
6     5     30
 0 Votos
 5 Respuestas
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 RespuestasEn tendencia hoy
How create a new language ?
 1 Votes
Beginner question
 0 Votes
I need help to solve this
 0 Votes
Remove
 0 Votes
Project
 0 Votes