This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub power { | |
my ( $base, $exponent ) = @_; | |
my $result = 1; | |
for ( my $i = 0 ; $i < $exponent ; $i++ ) { | |
$result = $result * $base; | |
} | |
return $result; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include "sort.h" | |
#define SIZE 10 //size of the array we're dealing with | |
//function to scramble the array after we've sorted it | |
void Rearrange(int *ptr) | |
{ | |
} |
NewerOlder