Update Printing_a_Variable.c

Actually printed fox :P
This commit is contained in:
Damon Leven
2023-04-28 17:49:10 +00:00
committed by GitHub
parent 1081582559
commit 83b9e0b48f
+11 -3
View File
@@ -1,7 +1,15 @@
#include <stdio.h> #include <stdio.h>
int main() { int main() {
int j = 1; int i = 3;
printf("Printing %i,\nalthough printing foxes is superior.", j); const char fox[4] = "FOX";
return 0;
printf("Printing ");
for (unsigned int j = 0; j < 3; j++) {
printf("%c", fox[j]);
}
printf(", Since they are better :P\n");
return 0;
} }