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<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) | |
{ |
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<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; |
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<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) | |
{ |
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
package javaapplication4; | |
class kia | |
{ | |
private int wheels ; | |
private int range ; | |
public kia() | |
{ |
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
package javaapplication2; | |
import java.util.Scanner; | |
interface f | |
{ | |
public void area(); | |
public void aroud(); | |
} | |
class f1 implements f | |
{ | |
double p; |
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
/* | |
* 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; | |
/** | |
* |
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<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 ; |
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<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++) |
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<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) |
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<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++ ) |