Using this will guarantee that the code executes at least once


#include <stdio.h>
#include <stdlib.h>

int main()
{
    int meatballs = 1;

    do{
        printf("You have %d meatballs \n", meatballs);
        meatballs++;
    }while(meatballs < 10);

    return 0;
}



Average test scores


#include <stdio.h>
#include <stdlib.h>

int main()
{
    float grade = 0;
    float scoreEntered = 0;
    float numberOfTests = 0;
    float average = 0;

    printf("Press 0 when complete.\n");

    do{
        printf("Tests:%.0f   Average:%.2f \n", numberOfTests, average);
        printf("\nEnter test score: ");
        scanf("%f", &scoreEntered);
        grade += scoreEntered;
        numberOfTests++;
        average = grade / numberOfTests;
    }while(scoreEntered != 0);

    return 0;
}