You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
419 B
27 lines
419 B
#include <stdio.h>
|
|
|
|
char c = 'x';
|
|
|
|
void print_row(int length)
|
|
{
|
|
for (int x=0; x<length; x++) {
|
|
printf("%c", c);
|
|
}
|
|
printf("\n");
|
|
}
|
|
|
|
int main()
|
|
{
|
|
volatile int i = 42;
|
|
const char *text = "constant\n";
|
|
int threshold = 7;
|
|
|
|
// Wait for the debugger to get us out of this loop.
|
|
while (i)
|
|
;
|
|
|
|
printf("%s", text);
|
|
for (int y=0; y < 10; y++) {
|
|
print_row(y);
|
|
}
|
|
}
|
|
|