Computer Science & C Programming


Exercices (2/2)

  1. Giving two number (a,b), define a program printing (q,r) such as a=q*b+r with r<b
  2. Develop a program that displays le numerical value of a fraction, e.g. 1/39 must display 0.0256
  3. How many 5 do we have in the 100 first digits ?
  4. What is the digit that appears most in this 100 digits ?