Search:
Forum
Beginners
help in pair code
help in pair code
Nov 21, 2018 at 2:18pm UTC
sabagventsadze
(5)
#include <iostream>
using namespace std;
main(){
int n;
cin >>n;
for(int i=1;n<=100;i++){
for(int k=1;n<=100;k--){
}
}
return 0;
}
So i wrote this I need help what do i have to cout ?
it has to cout all possible pairs
Nov 21, 2018 at 2:20pm UTC
MikeyBoy
(5631)
All possible pairs of what?
EDIT: But this is just a duplicate of the question you asked in your other thread:
http://www.cplusplus.com/forum/general/246322/
Please DON'T start multiple threads on the same subject.
Last edited on
Nov 21, 2018 at 2:24pm UTC
Nov 21, 2018 at 2:44pm UTC
Satan
(369)
See this thread on the same topic:
http://www.cplusplus.com/forum/beginner/246259/
You might get a hint.
HINT: Try printing the values of i and k and what do you observe? Any kind of pattern?
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs