This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
main() | |
{ | |
printf("Just one small step for coders. One giant leap for"); | |
printf(" programmers!\n"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
main () | |
{ | |
printf("I am learning the %c programming language\n", 'C'); | |
printf("I have just completed Chapter %d\n", 2); | |
printf("I am %.1f percent ready to move on", 99.9); | |
printf("to the next chapter!\n"); | |
return 0; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This chapter of the book goes over the concept of leaving comments and how helpful they can be in helping other people understand your code as well as helping you in the case of having to debug your code after a while */ | |
/* I will definitely get into the habit of leaving comments from now on */ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First example program | |
/* #include <stdio.h> (REMEMBER: remove comment signs to run first program!) | |
main() | |
{ | |
printf("Column A\tColumn B\tColumn C"); | |
printf("\nMy Computer\'s Beep Sounds Like This: \a!\n"); | |
printf("\"Lets fix that typo and then show the backslash "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code below was a practice excercise I did that outputs some of my information | |
/* #include <stdio.h> | |
int main () | |
{ | |
printf("Name : Sef Sheek\n"); | |
printf("Date Of Birth: 09/30/1993\n"); | |
printf("Phone Number: 4447658383\n"); | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WARMUP CODE | |
#include <stdio.h> | |
int main () | |
{ | |
char char1 = 'X'; | |
char char2 = 'M'; | |
char char3 = 'L'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The purpose of the warmup code below is to output is to practice displaying variables | |
/* | |
#include <stdio.h> | |
int main() | |
{ | |
int a = 125, b = 12345; | |
long ax = 1234567890; | |
short s = 4043; | |
float x = 2.13459; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This sample program asks a user for some basic data and prints it on the screen in order to show what was entered. | |
#include <stdio.h> | |
main() | |
{ | |
char firstInitial; | |
char lastInitial; | |
int age; | |
int favorite_number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This first sample program is to practice with using math operators | |
/* | |
#include <stdio.h> | |
main() | |
{ | |
float a = 19.0; | |
float b = 5.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This practice program increases a counter from 1 to 5 and then decreases it | |
#include <stdio.h> | |
main() | |
{ | |
int ctr = 0; | |
ctr += 1; | |
printf("Counter is at %d.\n", ctr); |
OlderNewer