Posts by AsAlbu • 45 points
3 posts
-
-3
votes4
answers201
viewsQ: How to reduce Python code 3?
a simple algorithm to read an X integer and print the next 6 odd ones (including the odd X) X = int(input()) if X % 2 == 1: print(X) X+=2 for i in range(5): if X % 2 == 1: print(X) X+=2 else: X+=1…
-
3
votes5
answers51063
viewsA: Command "npm" is not recognized by Command Prompt
If Node is installed and npm is still not recognized it is very likely (for some reason) that the system path has not been updated. at command prompt (CMD) type " npm config get prefix " to check…
-
0
votes1
answer2214
viewsQ: How to add values within an array?
I have an integer value and need to transform it into an array to sum each of the elements individually. I did it as follows (example): int n = 1230; string sn = Convert.ToString(n); //converte em…