Tuesday, July 28, 2009

Write a function called PrintToZero that takes in a reference parameter num. the function prints out the conte

write a function called PrintToZero that takes in a reference parameter num. the function prints out the content of num up to zero. for example, if *num = 10, then printToZero(num) prints 10 9 8 7 ......0. WHAT IS THE SOURCE CODE IN C PROGRAMMING? PLEASE HELP ME TO ANSWER THIS PROBLEM... THANKS..

Write a function called PrintToZero that takes in a reference parameter num. the function prints out the conte
try this:


void printToZero(int *nr)


{


for (i = nr; i %26gt;= 0; i--) {


printf("%d\n", i);


}


}


No comments:

Post a Comment