< Let Us GCC
Old Code
/* Just for fun. Author: Bozo */
main( )
{
int num ;
printf ( "Enter a number" ) ;
scanf ( "%d", &num ) ;
printf ( "Now I am letting you on a secret..." ) ;
printf ( "You have just entered the number %d", num ) ;
}
New Code
/* Just for fun. Author: Bozo */
/* Editor GReaperEx Date: 19/7/2015 */
#include <stdio.h>
int main(void)
{
int num;
printf("Enter a number");
scanf("%d", &num);
printf("Now I am letting you on a secret...");
printf("You have just entered the number %d", num);
return 0;
}
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.