Sort by

recency

|

855 Discussions

|

  • + 0 comments

    Cool, I solved the "For Loop in C".

  • + 0 comments

    Great explanation of the for loop and its components! This task is a perfect way to practice applying loops and conditional statements together. Raja567 Registration

  • + 1 comment

    include

    int main() { int n, m; scanf("%d %d", &n, &m);

    char *numbers[] = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
    
    for (int i = n; i <= m; i++) 
    {
        if (i >= 1 && i <= 9) 
        {
            printf("%s\n", numbers[i-1]); 
        } else if (i % 2 == 0) 
        {
            printf("even\n");
        } else {
            printf("odd\n");
        }
    }
    
    return 0;
    

    }

  • + 0 comments

    A for loop in C is a control structure used to repeat a block of code a specific number of times, making it ideal for tasks like iterating through arrays or running counters. It has three parts: initialization, condition, and increment, all in one line for compactness and clarity. Just like how a delta delta executor programmers manage repetitive tasks with precision and control. runs scripts efficiently in a controlled environment, a for loop helps C

  • + 0 comments

    Here is for loop in c solution - https://programmingoneonone.com/hackerrank-for-loop-in-c-solution.html