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++
- Introduction
- For Loop
- Discussions
For Loop
For Loop
Sort by
recency
|
1651 Discussions
|
Please Login in order to post a comment
Now we encounter the problem based on the basics of c++ ; "we can't use datastructures or any arrays".
so I get the code
CODE :
include
include
using namespace std;
int main() { // Complete the code. int n,m;
}
}
int main() { int a,b ; cin>>a>>b; string x[]={"one","two","three","four","five","six","seven","eight","nine"}; for(int i=a ;i<=b;i++){ if(i<=9){ cout<9 && i%2==0){ cout<<"even"<
}
Here is For loop in c++ solution - https://programmingoneonone.com/hackerrank-for-loop-solution-in-cpp.html