Fill One-Dimensional Arrays , Accumulate, and Dump out the Array

/*This program will fill a one-dimenstional arrays, 
add the numbers and then dump out the array.*/

#include <stdio.h>
main()
{
    float num[5]; /* Declaring one-dimenstional array.
                            num[0], num[1]...num[4] */
    float sum = 0.0;
    int c = 0;// Intializing counter to control subscript

    // Getting Data
        do
            {
                    printf ("Please enter a number :");
                    scanf ("%f", &num[c]);
                    c++;/*counts the data entered and 
                               controls the subscript of counter.*/
            }
        while ( c < 4);

    // summing the numbers entered.
        for (int k = 0; k < c; k++)
            sum += num[k];

    // dumping out the array.
        for (int i = 0; i < c; i++)
            printf ("%3.1f\n",num[i]);
printf ("%3.1f",sum);

return 0;
}
/*
Please enter a number :1.5
Please enter a number :2.0
Please enter a number :2.0
Please enter a number :2.5
1.5
2.0
2.0
2.5
8.0
*/