We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C
- Conditionals and Loops
- For Loop in C
- Discussions
For Loop in C
For Loop in C
Sort by
recency
|
857 Discussions
|
Please Login in order to post a comment
int main() { int a, b; scanf("%d\n%d", &a, &b); for(int i =a; i
}
Is the expected output wrong here? 3 is an odd number, the sequence should start with "odd" not even.
Input: 3, 15
Expected Output:
Three, Four, Five, Six, Seven, Eight, Nine, Even, Odd, etc...
Cool, I solved the "For Loop in C".
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
include
int main() { int n, m; scanf("%d %d", &n, &m);
}