int c;
<br>int i;
<br>int k;

<br>do
<br> c = get_int ("c: ");
<br>while (c < 0);
<br>for (i = 0 ; c >= 5 ; i++)
<br>{
<br> c = c - 5;
<br>}
<br>int v = c;
<br>for (k = 0 ; c >= 1 ; i++)
<br>{
<br> v = v -1 ;
<br>}
<br>printf("%i\n", i + k);

<br>Here is my code to count the sum of 5 and 1 coin of a certain money to be the less. But I have to assign variable c to variable v because if not do so, the program will stop if the money is less than 5 in the first place. Can anyone tell me how I can get the value of variable c after a loop without assign it to another variable?