User Manual of C
Four major undergraduate computer courses in North America:
Programming linguistics
Algorithms and data structures
Operating systems
Computer networks
Databases
Distributed systems
Spoiler tag
pseudocode?
description text of ideas
<math.h>Functions
Set $m/n = (z/q)^x$, m≥n≥2, z>q≥2, x≥0, all arguments are positive integers.
how to write an arithmetic function to get x value properly in c programming?
could it be like below?
x = $log(m/n)$ / $log(z/q)$ ?
I have tried, what’s wrong in the code? How to prevent it gets infinite or wrong number?
C log() - C Standard Library (programiz.com)
cs50, lab1-population
m=n$(13/12)^x$
m=n*pow(13/12,x)
Data type and Variables
float, double
truncate the decimal
truncation