बीत गया 2012....
मिला-जुला के बीत गया २०१२
Sunday, December 30, 2012
Monday, October 29, 2012
Friday, August 10, 2012
palindrome program in c/c++
#include
#include
#include
void main()
{
char st[10];
int l=0,i,j,flag=0;
clrscr();
cout<<"enter the number";
cin>>st;
l=strlen(st);
for(i=0,j=l-1;i<=(l+1)/2;i++,j--)
{
if(st[i]==st[j])
flag=1;
}
if(flag==1)
cout<<"palindram";
else
cout<<"not palindram";
getch();
}
#include
#include
void main()
{
char st[10];
int l=0,i,j,flag=0;
clrscr();
cout<<"enter the number";
cin>>st;
l=strlen(st);
for(i=0,j=l-1;i<=(l+1)/2;i++,j--)
{
if(st[i]==st[j])
flag=1;
}
if(flag==1)
cout<<"palindram";
else
cout<<"not palindram";
getch();
}
Tuesday, August 7, 2012
Monday, June 4, 2012
program of series or nested loop
OUTPUT:-
0
10
010
1010
01010
#include
#include
void main()
{
int i,j,flag=0,lflag=0;
clrscr();
{
for(i=0;i<=4;i++)
{
flag=i;
for(j=0;j<=i;j++)
{
lflag=flag%2;
printf("%d",lflag);
flag++;
}
printf("\n");
}
}
getch();
}
Monday, May 28, 2012
palindrome program in c/c++
#include
#include
#include
void main()
{
char st[10];
int l=0,i,j,flag=0;
clrscr();
cout<<"enter the number";
cin>>st;
l=strlen(st);
for(i=0,j=l-1;i<=(l+1)/2;i++,j--)
{
if(st[i]==st[j])
flag=1;
}
if(flag==1)
cout<<"palindram";
else
cout<<"not palindram";
getch();
}
Monday, April 2, 2012
program to print the series in java
import java.io.*;
class series1
{
public static void main(String args[])
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
System.out.print("*");
}
System.out.println();
}
}
}
class series1
{
public static void main(String args[])
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
System.out.print("*");
}
System.out.println();
}
}
}
program to print the series in java
import java.io.*;
class series1
{
public static void main(String args[])
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
System.out.print("*");
}
System.out.println();
}
}
}
class series1
{
public static void main(String args[])
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
System.out.print("*");
}
System.out.println();
}
}
}
Saturday, March 31, 2012
program to print the series in java
A
AB
ABC
ABCD
ABCDE
import java.io.*;
class abc
{
public static void main(String args[])
{
int i,j;
for(i=65;i<=69;i++)
{
for(j=65;j<=i;j++)
{
System.out.print((char)j);
}
System.out.println();
}
}
}
AB
ABC
ABCD
ABCDE
import java.io.*;
class abc
{
public static void main(String args[])
{
int i,j;
for(i=65;i<=69;i++)
{
for(j=65;j<=i;j++)
{
System.out.print((char)j);
}
System.out.println();
}
}
}
program to print the series in java
import java.io.*; class series1 { public static void main(String args[]) { int i,j; for(i=1;i<=5;i++) { for(j=1;j<=i;j++) { System.out.print("*"); } System.out.println(); } } }
Program to print series in java
*
**
***
****
*****
import java.io.*;
class series1
{
public static void main(String args[])
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
System.out.print("*");
}
System.out.println();
}
}
}
Thursday, March 29, 2012
Union of two Arrays in C
#include
#include
void main()
{
int a[5],b[5],m[5],n[5],i,k=0,l=0,t,flag=0;
clrscr();
printf("Enter First Array Element:");
for(i=0;i<=4;i++)
scanf("%d",&m[i]);
printf("Enter Second Array Element:");
for(i=0;i<=4;i++)
scanf("%d",&n[i]);
//Union of First Array
a[k]=m[0];
k++;
for(i=1;i<=4;i++)
{
for(t=0;t<=i;t++)
{
if(m[i]==m[t])
{
flag=1;
break;
}
else
{
flag=0;
}
}
if(flag==0)
{
a[k]=m[i];
k++;
}
}
//Union of Second Array
b[l]=n[0];
l++;
for(i=1;i<=4;i++)
{
for(t=0;t<=i;t++)
{
if(n[i]==n[t])
{
flag=1;
break;
}
else
{
flag=0;
}
}
if(flag==0)
{
b[l]=n[i];
l++;
}
}
//Union of Both Arrays
for(i=0;i<=k;i++)
{
for(t=0;t<=l;t++)
{
if(a[i]==b[t])
{
flag=1;
break;
}
else
{
flag=0;
}
}
if(flag==0)
{
printf("%d\t",a[i]);
}
}
for(i=0;i<=l;i++)
{
printf("%d\t",b[i]);
}
getch();
}
#include
void main()
{
int a[5],b[5],m[5],n[5],i,k=0,l=0,t,flag=0;
clrscr();
printf("Enter First Array Element:");
for(i=0;i<=4;i++)
scanf("%d",&m[i]);
printf("Enter Second Array Element:");
for(i=0;i<=4;i++)
scanf("%d",&n[i]);
//Union of First Array
a[k]=m[0];
k++;
for(i=1;i<=4;i++)
{
for(t=0;t<=i;t++)
{
if(m[i]==m[t])
{
flag=1;
break;
}
else
{
flag=0;
}
}
if(flag==0)
{
a[k]=m[i];
k++;
}
}
//Union of Second Array
b[l]=n[0];
l++;
for(i=1;i<=4;i++)
{
for(t=0;t<=i;t++)
{
if(n[i]==n[t])
{
flag=1;
break;
}
else
{
flag=0;
}
}
if(flag==0)
{
b[l]=n[i];
l++;
}
}
//Union of Both Arrays
for(i=0;i<=k;i++)
{
for(t=0;t<=l;t++)
{
if(a[i]==b[t])
{
flag=1;
break;
}
else
{
flag=0;
}
}
if(flag==0)
{
printf("%d\t",a[i]);
}
}
for(i=0;i<=l;i++)
{
printf("%d\t",b[i]);
}
getch();
}
Wednesday, March 28, 2012
आँखों में
जुबान खामोश,आँखों में नमी होगी ,
यही बस एक दास्ताँ -ए-ज़िन्दगी होगी ,
भरने को तो हर ज़ख़्म भर जायेगा ,
कैसे भरेगी वो जगह जहा तेरी कमी होगी ..
यही बस एक दास्ताँ -ए-ज़िन्दगी होगी ,
भरने को तो हर ज़ख़्म भर जायेगा ,
कैसे भरेगी वो जगह जहा तेरी कमी होगी ..
,आँखों में
जुबान खामोश ,आँखों में नमी होगी ,
यही बस एक दास्ताँ -ए-ज़िन्दगी होगी ,
भरने को तो हर ज़ख़्म भर जायेगा ,
कैसे भरेगी वो जगह जहा तेरी कमी होगी ..
यही बस एक दास्ताँ -ए-ज़िन्दगी होगी ,
भरने को तो हर ज़ख़्म भर जायेगा ,
कैसे भरेगी वो जगह जहा तेरी कमी होगी ..
तेरा इन्तजार ..
रास नही आयी ये, जिन्दगी मेरी ....
आस छुट नही पायी , अभी तेरी ..
कही से भी तुम आ जाओ मेरे पास ..
आज भी करता हूँ मै तेरा इन्तजार ...
आस छुट नही पायी , अभी तेरी ..
कही से भी तुम आ जाओ मेरे पास ..
आज भी करता हूँ मै तेरा इन्तजार ...
Tuesday, March 27, 2012
डाकू भेज दिए ..
"तोप, तमंचे, छुरे, कतरनी, पैने-चाकू भेज दिए ,
सरहद की रक्षा करने कई वीर लड़ाकू भेज दिए,
चम्बल के खेतों में अब तो कवितायें लहरातीं हैं ,
जितने भी थे हम ने चुन कर 'दिल्ली' डाकू भेज दिए ......[तेजनारायण बेचैन]
सरहद की रक्षा करने कई वीर लड़ाकू भेज दिए,
चम्बल के खेतों में अब तो कवितायें लहरातीं हैं ,
जितने भी थे हम ने चुन कर 'दिल्ली' डाकू भेज दिए ......[तेजनारायण बेचैन]
Monday, March 12, 2012
*Program to concatenatetwo strings By overloading + operator
#include
#include
class concat
{
char st[20];
public:input()
{
cout<<"enter a sting"; cin>>st;
}
void operator +(concat &c)
{
strcat(st,c.st);
cout<
}
};
main()
{
concat c1,c2;
c1.input();
c2.input();
c1+c2;
}
#include
class concat
{
char st[20];
public:input()
{
cout<<"enter a sting"; cin>>st;
}
void operator +(concat &c)
{
strcat(st,c.st);
cout<
};
main()
{
concat c1,c2;
c1.input();
c2.input();
c1+c2;
}
Friday, February 10, 2012
शुक्रिया कर दें..
जिन्दगी अपनी खुबसूरत नज़र आती है,
मेरे दिल में कोई तस्वीर उतर जाती है,
अब चलो इन हवाओं का शुक्रिया कर दें ,
इनके कारण ही तेरी जुल्फ बिखर जाती है,
मेरे दिल में कोई तस्वीर उतर जाती है,
अब चलो इन हवाओं का शुक्रिया कर दें ,
इनके कारण ही तेरी जुल्फ बिखर जाती है,
Subscribe to:
Posts (Atom)


