Commit 4c0f1237 authored by Matthias Braun's avatar Matthias Braun
Browse files

reindented source

parent 541b29cc
......@@ -13,40 +13,40 @@ typedef int boolean;
#define false 0
static void piff(void) {
int i, j, x, delta_x;
delta_x = 2;
j = 0;
x = 0;
for (i = 0, x = 0; i < 1000; i++, x += delta_x) {
j += x;
}
int i, j, x, delta_x;
delta_x = 2;
j = 0;
x = 0;
for (i = 0, x = 0; i < 1000; i++, x += delta_x) {
j += x;
}
}
static int simpleloop (int a, int b) {
int i, j, delta_x, x;
boolean loopfinal = true;
for(i = 0; (i < 10) && loopfinal; i++) {
if(5 == i)
loopfinal = false;
printf("%d ", i);
}
printf("\n");
for(i = 0; i < a; ++i) {
for(j = 0; j < b; ++j) {
printf("%d,%d\n", i, j);
}
}
return(i);
int i, j, delta_x, x;
boolean loopfinal = true;
for(i = 0; (i < 10) && loopfinal; i++) {
if(5 == i)
loopfinal = false;
printf("%d ", i);
}
printf("\n");
for(i = 0; i < a; ++i) {
for(j = 0; j < b; ++j) {
printf("%d,%d\n", i, j);
}
}
return(i);
}
int main (int argc, char *argv[]) {
int i, j;
int i, j;
printf("ForTest.c\n");
printf("ForTest.c\n");
simpleloop(3, 10);
return 0;
simpleloop(3, 10);
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment