Setup instructions for simulations
sudo apt-get install apache2
| <?php | |
| require("./amazon-sdk/sdk.class.php"); | |
| // on ubuntu - this script can be run using php5-cli and php5-curl | |
| //Provide the Key and Secret keys from amazon here. | |
| $AWS_KEY = "kkk"; | |
| $AWS_SECRET_KEY = "kkkk+xKcdkB"; | |
| //certificate_authority true means will read CA of amazon sdk and false means will read CA of OS | |
| $CA = true; |
| int product(int s,int k) | |
| { | |
| int temp=0; | |
| int i,max; | |
| if(k==1) | |
| return s; | |
| else | |
| { | |
| for(i=1;i<s;i++) | |
| { |