Auto commit
This commit is contained in:
		
							parent
							
								
									da63a1d634
								
							
						
					
					
						commit
						b5cc50f90d
					
				| @ -31,6 +31,14 @@ void sort(int *p, int n) | |||||||
| { | { | ||||||
|     int i, j, temp; |     int i, j, temp; | ||||||
|     /**********Program**********/ |     /**********Program**********/ | ||||||
|      |     i = 0; | ||||||
|  |     j = n-1; | ||||||
|  |     while(i < j){ | ||||||
|  |     	temp = p[i]; | ||||||
|  |     	p[i] = p[j]; | ||||||
|  |     	p[j] = temp; | ||||||
|  |     	i++; | ||||||
|  |     	j--; | ||||||
|  | 	} | ||||||
|     /********** End **********/ |     /********** End **********/ | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user