Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define LOOP 1
- int main(){
- #ifdef LOOP
- #if LOOP == 1
- for (int i = 0; i < 10; i++){
- printf("Hello\n");
- }
- #elif LOOP == 2
- int i = 0;
- while (i < 10){
- printf("Hello\n");
- i++;
- }
- #elif LOOP == 3
- int i = 0;
- do{
- printf("Hello\n");
- i++;
- } while (i < 10);
- #endif
- #else
- printf("LOOP is not defined!\n");
- #endif
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement