Skip to content

Commit

Permalink
Ädded example for endless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggyfish committed Oct 13, 2023
1 parent f9e55b8 commit 6b491b0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/basic_endless_loop/basic_endless_loop.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <stdio.h>

int main(int argc) {
int n = 27;

while (1) {
if(n % 2 == 0){
n = n / 2;
} else{
n = n * 3 + 1;
}
}

printf("Testing");
}

0 comments on commit 6b491b0

Please sign in to comment.