a) Write a function that will return a random double number. The function takes two parameters (both integers). The first parameter is the maximum whole-number value that the number can be (the minimum is 0.) The second parameter is how many places of random precision the number must have.
b) Write a line of code that will call the function you just wrote above and ask it to generate a random number from 0-100 with two places of precision, saving the return value in a variable (declare it) named ran.
c) Print the value of ran to two places.
Can someone write this in C language?
it is not working
check this with user flames in yahoo he will help you
HA
HA
HA
HA
HA
ur rite
Reply:Yes,
that
is
easy.
spring flowers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment