#include#include void main() { int i,j; clrscr(); for(i=1;i<=5;i++) { for(j=1;j<=i;j++) printf("*"); printf("\n"); } getch(); }
there is some good c ,java, sql and vb6 programs,Windows tricks, sms shorthand etc
Sunday, August 1, 2010
Star Shape 2
Star Shape
#include#include void main() { int i; clrscr(); for(i=1;i<=5;i++) printf("*****\n"); getch(); }
Monday, July 12, 2010
Call main function in main function
Call main function in main function
#include "stdio.h"
#include "conio.h"
void display();
void main()
{
printf("NOMAN");
display();
getch();
}
void display()
{
printf("Rehan");
main();
}
Monday, July 5, 2010
To show multiple-inheritence
/*To show multiple-inheritence*/
import java.lang.*;
class A
{
A()
{
}
void display()
{
System.out.println("class A");
}
}
class B extends A
{
B()
{
}
void display1()
{
display();
System.out.println("class B");
}
}
class C extends B
{
C()
{
}
void display2()
{
display1();
System.out.println("class C");
}
}
class multi_inheritance
{
public static void main(String arg[])
{
C c1=new C();
c1.display2();
}
}
Subscribe to:
Posts (Atom)
How to earn online
How to earn online:
Step - 1 :
signup for PayPal, to recieve your online earning
click here:
https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL
step - 2 : Singup these 4 sites & earn & enjoy! Read site to know how to earn.
1. trekpay
Earn up to $0.02 (2 cents) per click.
http://www.trekpay.com/?ref=34690
2. neobux
Earn up to $0.02 (2 cents) per click.
Click here:
http://www.neobux.com/?r=Moneyearner786
Step - 1 :
signup for PayPal, to recieve your online earning
click here:
https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL
step - 2 : Singup these 4 sites & earn & enjoy! Read site to know how to earn.
1. trekpay
Earn up to $0.02 (2 cents) per click.
http://www.trekpay.com/?ref=34690
2. neobux
Earn up to $0.02 (2 cents) per click.
Click here:
http://www.neobux.com/?r=Moneyearner786