As I'm learning C language. I want to remain organized when writing code. Is this the correct way to organize the code?

I guess where I was going meaning that I want to practice "Over-organizing" my code early so that I'm used to it for later on. Basically I don't want to get lazy in my code and develop bad habits as I go along. The reason I used the { before the if checks is because I am able to collapse them in my compiler.

But I made some changes to my code based on what you said. I didn't have to even use a C variable. "Just over thinking it I was" (Yoda voice).

#include <stdio.h>
#define APPLETOTAL 20

int main()
{
int a;

printf("Hello. My job is to help you solve how many apples are left after a work day!\n[Press Enter]");
getchar();
printf("At the start of a work day, there is a total of %d Apples.\n[Press Enter]",APPLETOTAL);
getchar();
printf("How many Apples did Joey take?\n[Insert Number]:");
scanf("%d",&a);
//***if Check Apples Left***
    {
    if (a > APPLETOTAL)
    {
        puts("The total you entered is higher than the total of Apples!\n");
    }
    if (a == 20)
    {
        puts("Joey took all the Apples so there are none left!\n");
    }
    if (a < 20)
    {
        printf("Joey took %d Apples. So there are %d Apples left.",a,APPLETOTAL-a);
    }
    }
return 0;
}
/r/C_Programming Thread Parent