Skip to content

Instantly share code, notes, and snippets.

#include<iostream>
using namespace std;
void swap(int a[], int v,int b)
{
int temp=a[v];
a[v]=a[b];
a[b]=temp;
}
void insortion(int a[], int n)
{
#include<iostream>
using namespace std;
void merge(int a[],int low, int m ,int high)
{ const int max=100;
static int temp[max];
int i,j,k;
for(int i=low;i<=high;i++)
temp[i]=a[i];
i=k=low; j=m+1;
#include<iostream>
using namespace std;
void swap(int a[],int first, int last)
{
int temp=a[first];
a[first]=a[last];
a[last]=temp;
}
int partition(int a[],int first,int last)
{
package javaapplication4;
class kia
{
private int wheels ;
private int range ;
public kia()
{
package javaapplication2;
import java.util.Scanner;
interface f
{
public void area();
public void aroud();
}
class f1 implements f
{
double p;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication3;
/**
*
#include<iostream>
using namespace std ;
void main ()
{
int a, b[30],kan=0,s,z=0,f[30],o=0,r=0 ;
cin>>a; cout<<endl;
do{ r=0; o=0; z=0; kan=0;
for(int i=0 ; a!=0 ; i++)
{
b[i]=a%10 ;
#include<iostream>
#define size 100
using namespace std ;
int main ()
{
int s=0, d;
char a[size];
cout<<"enter size : "; cin>>d;
cout<<"enter the number : ";
for(int i=0 ; i<d ; i++)
#include<iostream>
using namespace std ;
int main ()
{
char a[1000] ;
int s ;
cout<<"2tha bdk tshafr ad5l (1),,, 2tha bdk tfk altshfer ad5l (0) ^_^ "<<endl;
cout<<"when u finish ur message enter 0 :)) "<<endl;
cin>>s;
if(s==1)
#include<iostream>
using namespace std ;
int main ()
{
int b[100],a,i=0,y,z=0,o=0,t=0;
cout<<"the first hundred hapPpPpPpy number are : "<<endl;
for(int r=1 ; r<1000 ; r++)
{ a=r;
do{ i=0; z=0;
for( i ; a!=0 ; i++ )