Skip to content

Instantly share code, notes, and snippets.

View mukeshkdangi's full-sized avatar
🎓
QUALity COMMuicatio for better future

Mukesh Dangi mukeshkdangi

🎓
QUALity COMMuicatio for better future
View GitHub Profile
@mukeshkdangi
mukeshkdangi / Cipher Ceaser
Created March 30, 2014 07:09
Pass text and shift number .
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'):
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')
#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(" ");
#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;
#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';
#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;
#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){