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
# For loop | |
for num in 1..10 | |
for new_num in 1..num | |
print new_num | |
end | |
puts "\n" | |
end |
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 <stdlib.h> | |
int main() | |
{ | |
int bin = 0; | |
printf("Please Enter your positive binary number:"); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
@package gallery | |
@copyright Copyright (c)2013 Nicholas K. Dionysopoulos / AkeebaBackup.com | |
@license GNU General Public License version 2 or later | |
Category Signle view form file | |
--> | |
<form validate="true" serverside_validate="true"> | |
<fieldset name="basic_information" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
@package Gallery | |
@copyright Copyright (c)2013 Nicholas K. Dionysopoulos / AkeebaBackup.com | |
@license GNU General Public License version 2 or later | |
Categories view form file | |
--> |
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
// Solution for: Take an integer(DECIMAL) input and convert it to Octal | |
int main() | |
{ | |
int octal_output[10]; | |
int i=1,j,n=-264; | |
// To avoid Negative Input | |
if(n<0) { | |
n = n +(-n*2); | |
} |
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
// Question: Take an integer(DECIMAL) input and convert it to Binary number | |
int main() | |
{ | |
int binary_output[10]; | |
int i=1,j,n=-52; | |
// To avoid Negative Input | |
if(n<0) { | |
n = n +(-n*2); | |
} |
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 <stdlib.h> | |
int multiplcation=1; | |
void power (int x, int n) { | |
if(n<0) { | |
n = n +(-n*2); | |
} | |
multiplcation *= x; | |
printf("%d \n",multiplcation); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
@package gallery | |
@copyright Copyright (c)2013 Nicholas K. Dionysopoulos / AkeebaBackup.com | |
@license GNU General Public License version 2 or later | |
Items view form file | |
--> | |
<form validate="true" serverside_validate="true"> | |
<fieldset name="basic_information" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
@package Gallery | |
@copyright Copyright (c)2013 Nicholas K. Dionysopoulos / AkeebaBackup.com | |
@license GNU General Public License version 2 or later | |
Items view form file | |
--> | |
<form | |
type="browse" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<extension version="2.5" type="component" method="upgrade"> | |
<name>gallery</name> | |
<creationDate>##DATE##</creationDate> | |
<author>Nicholas K. Dionysopoulos</author> | |
<authorEmail>[email protected]</authorEmail> | |
<authorUrl>http://www.akeebabackup.com</authorUrl> | |
<copyright>Copyright (c)2013 Nicholas K. Dionysopoulos / Akeeba Ltd</copyright> | |
<license>GNU GPL v3 or later</license> | |
<version>##VERSION##</version> |