Posts by paulo estevão • 95 points
6 posts
-
0
votes3
answers65
viewsA: Eternal and unique value
"I wanted to know the difference between them." Unique element: value elements, which can only have one value, (int, float, char, byte, double, decimal, etc...), are the primitive types. Eternal…
-
7
votes3
answers189
viewsQ: Global and local scope variable
If I print the global scope variable within a local scope, I am not allowed to redeclare again in the local scope. Why? For example, if I do: let a = 2; { let a = 3; console.log(a) //aqui aparece 3…
-
2
votes3
answers551
viewsQ: Convert string to integer positions
Console.Write("Digite um numero de 4 digitos: "); string numero = Convert.ToString(Console.ReadLine()); int soma = 0; for(int i = 0; i < numero.Length; i++) { soma += Convert.ToInt32(numero[i]);…
-
-4
votes2
answers112
viewsQ: Will someone please explain to me how I get to this algorithm?
public class Binary { public static void main(String[] args) { // Print binary representation of n. int n = Integer.parseInt(args[0]); int power = 1; while (power <= n/2) power *= 2; // Now power…
-
0
votes1
answer2358
viewsQ: C# - How to print all the values of an array with the Console.Writeline(??);command?
//Copy an array and print the 2. int[] original = new int[] { 2, 5, 3, 8, 9, 12, 15, 7 }; int[] copia = new int[original.Length]; for (int index = 0; index < original.Length; index++) {…
-
0
votes3
answers1101
viewsA: What is the difference between architecture, engineering, science, analysis, design, programming and coding?
"For example, what does computer science not address in software engineering? Or vice versa.": Simple, computer science involves much more areas than software engineering. The software engineering…