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() | |
{ | |
int c; | |
while ((c = getchar()) != EOF) { | |
if (c == '\t' || c == '\n') | |
putchar('\n'); | |
} |
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() | |
{ | |
int c, i, nwhite, nother; | |
int ndigit[10]; /* okey, so this make a "array" with 10 variables/values in it? */ | |
nwhite = nother = 0; | |
for (i = 0; i < 10; ++i) |
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() | |
{ | |
int c, counts[256]; | |
while((c = getchar()) != EOF) | |
++counts[c]; | |
printf("%d\n", counts[c]); | |
} |
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() | |
{ | |
int i, c, counts[256]; | |
for (i = 0; i < 256; ++i) | |
counts[i] = 0; | |
while((c = getchar()) != EOF) |
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() | |
{ | |
} |
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() | |
{ | |
int c, wc, count[10]; | |
count[0] = 0; | |
count[1] = 0; | |
count[2] = 0; | |
count[3] = 0; | |
count[4] = 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() | |
{ | |
int c, nw, nc, i, count[10], total; | |
count[0] = 0; | |
count[1] = 0; | |
count[2] = 0; | |
count[3] = 0; | |
count[4] = 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
^[[4;37mimg^[[0;34m # ^[[0;0m^[[K^M^[[4;37mimg^[[0;34m # ^[[0;0m | |
^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^ | |
H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^[[K^M^[[4;37m | |
img^[[0;34m # ^[[0;0m ^H^H^H | |
^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^ | |
H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^[[K^M^[[4;37mimg^[[0;34m # ^[[0;0m | |
^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^ | |
H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^[[K^M^[[4;37mim | |
g^[[0;34m # ^[[0;0m ^H^H^H^H | |
^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^ |
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> | |
int power(int m, int n); /* is this a variable for the whole program? is it an array?, what does n and m means, they are never used in the real program so i dont get it. */ | |
main() | |
{ | |
int i; | |
for(i = 0; i < 6; ++i) /* this prints what 2 is being raised to */ |
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
/*fahrenheight to celsius program*/ | |
#include <stdio.h> | |
#define LOWER 0 | |
#define UPPER 300 | |
#define STEP 20 | |
float conversion(float fahr, float celsius); | |