//
//ViewController.m
//CocoTest_1
//
//Created by S u p e r m a n on 2017/3/14.
//Copyright © 2017年张浩. All rights reserved.
//
#import"ViewController.h"
- (void)viewDidLoad {
[superviewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
inta[10] = {0,1,2,3,4,5,6,7,8,9};
inversion(10,a);
}
voidinversion(intn,int*a){
if(n ==1) {
printf("第%d个:%d\n",n,a[n-1]);
}else{
printf("第%d个:%d\n",n,a[n-1]);
inversion(n-1,a);
}
}
@end