When I run this code, and I press 1 at the end of it, instead of printing out message one, it just goes straight to scanf, and only after I enter in my input does it print message one.
#include <stdio.h>
void main() {
int year;
int decision;
printf( "\nThis program tells the user what the GDP per capita of post-independence South Sudan was in a given year. The availability of a figure for a certain year is subject to the limitations of the data that was provided by the World Bank. " );
point_one :
printf( "Enter a year below to get a figure for that year.\n\n" ); // message one
scanf( "%d" , &year );
if(2011 > year || year > 2015 )
printf( "\nThe figure for that year is unavailable.\n" );
else if( year == 2011 )
printf( "\n1,516.40 USD\n" );
else if( year == 2012 )
printf( "\n1,179.40 USD\n" );
else if( year == 2013 )
printf( "\n1,779.47 USD\n" );
else if( year == 2014 )
printf( "\n1,322.82 USD\n" );
else if( year == 2015 )
printf( "\n1,119.65 USD\n" );
printf( "\nDo you want to try again or leave?\n\n" );
scanf ( "%d\n\n" , &decision );
if ( decision == 1 )
goto point_one;
else return;
}