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<math.h> | |
int main(){ | |
int i=0,j,c,b,t,k; | |
int a[10001]; | |
scanf("%d%d",&c,&b); | |
i=abs(c-b); | |
j=0; | |
//printf("i--/.%d\n",i); | |
while(i){ |
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<conio.h> | |
int isless(int k, int m,int ned[10][10],int wrk[] ){ | |
int i; | |
for(i=0;i<m;i++){ | |
if(ned[k][i]>wrk[i]) | |
return 0; | |
} | |
return 1; |
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<conio.h> | |
char state[10],self[10],spoon[10]; | |
void test(int k) | |
{ | |
if((state[(k+4)%5]!='e')&&(state[k]=='h')&&(state[(k=1)]!='e')) | |
{ | |
state[k]='e'; | |
self[k]='s'; | |
spoon[k]='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<malloc.h> | |
#include<conio.h> | |
#include<stdlib.h> | |
struct dlist{ | |
int info; | |
struct dlist *next; | |
struct dlist *prev; | |
}; | |
struct dlist *start; |
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<malloc.h> | |
#include<conio.h> | |
#include<stdlib.h> | |
struct dlist{ | |
int info; | |
struct dlist *next; | |
struct dlist *prev; | |
}; | |
struct dlist *start; |
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> | |
long int fect(long int); | |
int main(){ | |
long int i,r,j,k=0; | |
long int n; | |
printf("\nEnter last number :"); | |
scanf("%d",&r); | |
for(i=1;i<=r;i++){ | |
for(k=0;k<=r-i-1;k++) | |
printf(" "); |
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
import string | |
j = ' ' | |
def buildCoder(shift): | |
n = shift | |
cnt=1 | |
for i in string.ascii_uppercase: | |
if cnt==1: | |
print '{','\b', | |
j= (ord(i)-ord('A') + n)%26 + ord('A') |
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
coder=3 | |
text='Hello, world!' | |
j = ' ' | |
n = coder | |
for i in text: | |
if(i>'A'and i<'Z'): | |
j= (ord(i)-ord('A') + n)%26 + ord('A') | |
print '\b'+unichr(j), | |
#print (unichr(j), end=' ') | |
elif(i>'a'and i<'z'): |