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> | |
void quicksort(int array[], int p, int r); | |
int partition(int array[], int p, int r); | |
int main() | |
{ | |
int n; | |
printf("How many inputs do you want to enter?\n"); | |
scanf("%d",&n); | |
int array[n]; |
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<string.h> | |
int main() | |
{ | |
char string[100]; | |
printf("Enetr your string that you want to caculate its length:\n"); | |
gets(string); | |
int len=0,n=0; | |
while(string[n] != '\0')//length calculate | |
{ |
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> | |
int main(void) | |
{ | |
char str[80]; | |
int i; | |
printf("Enter a string: "); | |
gets(str); |
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<string.h> | |
int mainmenu(void); | |
void correct(long int credit); | |
void worng(void); | |
void error(void); | |
void easy_level(void); | |
void medium_level(void); | |
void hard_level(void); | |
void checkans(char ch, char ch1); |
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> | |
int main(){ | |
int pid,ppid; | |
pid=getpid(); | |
ppid=getppid(); | |
printf("This program process id[PID]:=%d\nAnd Parent process id[PPID]=%d\n",pid,ppid); | |
} |
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> | |
void TAsum(int nam1, int nam2);//fuction prototype | |
int main() | |
{ | |
int i; | |
int a1[]={2,3,4,5,6}; | |
int a2[] = {9,8,7,5,2}; | |
for(i=0;i<5;i++) | |
{ | |
TAsum(a1[i],a2[i]);//call the function |
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
#!/usr/bin/python3 | |
''' | |
Prime number generator | |
''' | |
def isPrime(n): | |
for num in range(1,n): | |
if num%2 !=0: | |
print(num) | |
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
"use stict" | |
/*Inheritance | |
* Examples Practice | |
*/ | |
//extend function | |
function extend(Child,Parent){ | |
Child.prototype = new Parent(); | |
Child.prototype.constructor = Child; | |
} | |
//animal Constructor |
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
from world import me, you | |
from my.consciousness import I,your | |
from feelings import * | |
always = True | |
if you in (depressed, sadness, resignation): | |
print 'My Sweetheart' | |
if feel(you) is lonely or feel(you) is neglected: | |
talk_me(this) | |
while always: |
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
[uwsgi] | |
chdir=path of project | |
home = path of virtual env | |
module=project name.wsgi | |
master=True | |
process = 5 | |
pidfile=/tmp/whatever.pid | |
socket= /tmp/whatever.sock | |
vacuum=True | |
max-requests=5000 |