JEFF447
|
  |
| Joined: 24 Apr 2009 |
| Total Posts: 322 |
|
|
| 08 Feb 2012 04:37 PM |
#include (iostream) using namespace std; int main() { int n; cin>>n; if(n%2==0) cout((n/2*n/2((endl; else cout( (n/2*(n+1)/2((endl; for(int i=1;i<=n/2;i++) for(int j=n/2+1;j<=n;j++) cout< < i< <" "< < j< < endl; return 0; }
|
|
|
| Report Abuse |
|
|
|
| 08 Feb 2012 04:37 PM |
| I'm taking that class next year. :) |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2012 04:38 PM |
| tell me what the first 10 pieces of code means/does |
|
|
| Report Abuse |
|
|
Gaomon94
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 74936 |
|
|
| 08 Feb 2012 04:38 PM |
< head > < title > I don't know < / title > < / head> < body > < p > I have a sneaky feeling you copied that. < /p > < / body > |
|
|
| Report Abuse |
|
|
mustyoshi
|
  |
 |
| Joined: 27 Dec 2007 |
| Total Posts: 41651 |
|
|
| 08 Feb 2012 04:38 PM |
I prefer cstdio Because it doesn't bloat my exes. And I like printf
~Monica |
|
|
| Report Abuse |
|
|