The user only inputs the first hailstone number


We're writing codes and I'm completely lost on this one:

You must implement a function with the following prototype:
void hailstones (int n) ;

The user only inputs the first hailstone number. All the rest and the total number of hailstones should be output by your program. 
Rubrics:
-No prompt line
-Incorrect hailstones
-Incorrect total number 

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: The user only inputs the first hailstone number
Reference No:- TGS088452

Expected delivery within 24 Hours