python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Misunderstood Operators Precedence in C
I was doing some exercises on the order of execution of operations in C and I came across a case that I did not quite understand.
int d = 1;
int e = d--/10; // the result of e will be 0;
before c...

Nimpo
Votes: 0
Answers: 2
How to perform arithmetic on every row of a file via piping
Lets say we have a simple file data.txt which has the following content:
1
2
3
Is there a command to perform arithmetic on every row value of the file via piping? I'm looking for something like cat d...

Moritz Wolff
Votes: 0
Answers: 2
How to find 10 random decimal numbers between min number and max number , the sum of random numbers should be X
to find 10 random decimal numbers between 7.00 and 13.00, the sum of the 10 random decimal numbers should be 100.
I have tried and I am getting the total sum but I am not getting the random number bet...

persam
Votes: 0
Answers: 1
how to simplify modulo arithmetic expression containing a division operation?
my question is very simple.
The expression ((a + b) * c) % m can be simplified to
= (((a + b) % m) * (c % m)) % m
= ((((a % m) + (b % m)) % m) * (c % m)) % m
I am trying to simplify the expressio...

Ashu Sahu
Votes: 0
Answers: 0