Earn by twitter on twivert

Sign up for PayPal and start accepting credit card payments instantly.

Thursday, April 8, 2010

WAP of STACK


/*WAP of STACK*/

#include<stdio.h>
#include<conio.h>
#include<alloc.h>
#include<process.h>
struct stack
{
  int no;
  struct stack *next;
}*top=NULL;
typedef struct stack st;
void push();
int pop();
void display();
void main()
{
    char ch = 'y';
    int choice,temp;
    clrscr();
    do
    {

      printf("\n1:push");
      printf("\n2:pop");
      printf("\n3:display");
      printf("\n4:exit");
      printf("\nEnter your choice");
      scanf("%d",&choice);
      switch(choice)
      {
        case 1:push();
             break;
        case 2:temp=pop();
        printf("the deleted element is%d",temp);
             break;
        case 3:
             display();
             break;
       case 4:
             exit(0);
             break;
        default:
             printf("\n wrong choice");
      }
      printf("do you want continue(y/n)");
      flushall();
      scanf("%c",&ch);
    }
    while(ch =='Y'|| ch =='y');
 }
 void push()
 {

    st*P;
    P=(st*)malloc(sizeof(st));
    printf("\nthe number");
    scanf("%d",&P->no);
    P->next=top;
    top=P;
 }
    int pop()
    {
       st*P;
       P=top;
       if(top==NULL)
       {
           printf("stack is already empty");
           getch();
           exit(0);
       }
       else
       {
           top=top->next;
           free(P);
       }
       return(P->no);
    }
    void display()
    {

       st*P;
       P=top;
       while(P->next != NULL)
       {
            printf("\n=%d",P->no);
            P=P->next;
       }
       printf("\nno=%d",P->no);
    }



How to earn online:


  1. Step - 1 :

    signup for PayPal, to recieve your online earning
    click here:
    https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL

  2. step - 2 :
    Read & Rate interesting articales to earn money!
    per artical $0.03 to $0.10
    link: http://www.readbud.com/?ref=4096068

  3. EARN MONEY BY BUMPING SITES, DAILY 5 ADS TO CLICK,
    PER CLICK 0.02$, DAILY 0.10$ EARN, MINIMUM PAYOUT 15$,
    YES ITS FREE TO JOIN
    http://www.MoneyBumper.com/Main.cfm?R=134526

Wednesday, April 7, 2010


/*WAP to enter record of 5 student name,class,roll no. & 5 subjects marks
& calculate Total, percentage,divition of each*/

#include<stdio.h>
#include<conio.h>
struct student
    {
     char name[25];
     int marks[5];
     int roll,clas;

    }
main()
{
student s1,s2,s3,s4,s5;
int i;
int total=0,per;
clrscr();
printf("\nEnter first student name\n");
gets(s1.name);
printf("\nenter class");
scanf("%d",&s1.clas);
printf("\nenter roll no.");
scanf("%d",&s1.roll);
printf("\nEnter 5 sub. marks");
for(i=0;i<5;i++)
  {
   scanf("%d",&s1.marks[i]);
  }

printf("\nEnter second student name\n");
gets(s2.name);
printf("\nenter class");
scanf("%d",&s2.clas);
printf("\nenter roll no.");
scanf("%d",&s2.roll);
printf("\nEnter 5 sub. marks");
for(i=0;i<5;i++)
  {
   scanf("%d",&s2.marks[i]);
  }

printf("\nEnter thierd student name\n");
gets(s3.name);
printf("\nenter class");
scanf("%d",&s3.clas);
printf("\nenter roll no.");
scanf("%d",&s3.roll);
printf("\nEnter 5 sub. marks");
for(i=0;i<5;i++)
  {
   scanf("%d",&s3.marks[i]);
  }

printf("\nEnter fourth student name\n");
gets(s4.name);
printf("\nenter class");
scanf("%d",&s4.clas);
printf("\nenter roll no.");
scanf("%d",&s4.roll);
printf("\nEnter 5 sub. marks");
for(i=0;i<5;i++)
  {
   scanf("%d",&s4.marks[i]);
  }

printf("\nEnter fifth student name\n");
gets(s5.name);
printf("\nenter class");
scanf("%d",&s5.clas);
printf("\nenter roll no.");
scanf("%d",&s5.roll);
printf("\nEnter 5 sub. marks");
for(i=0;i<5;i++)
  {
   scanf("%d",&s5.marks[i]);
  }


for(i=0;i<5;i++)
  {
   total+=s1.marks[i];
  }
per=(total*100)/500;
printf("\nstudent name is %s\n",s1.name);
printf("\nstudent class is %d",s1.clas);
printf("\nstudent Roll No. is %d",s1.roll);
printf("\ntotal obtain mark is %d",total);
printf("\nstudent percentage is %d\n",per);
if(per>=60)
 {
  printf("first division");
 }
else
if(per>=45&&per<60)
 {
  printf("second division");
 }
else
if(per>=33&&per<45)
 {
  printf("third division");
 }
else
if(per<33)
 {
  printf("\nfail");
 }
getch();
}

How to earn online:

  1. Step - 1 :

    signup for PayPal, to recieve your online earning
    click here:
    https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL

  2. step - 2 :
    Read & Rate interesting articales to earn money!
    per artical $0.03 to $0.10
    link: http://www.readbud.com/?ref=4096068

  3. EARN MONEY BY BUMPING SITES, DAILY 5 ADS TO CLICK,
    PER CLICK 0.02$, DAILY 0.10$ EARN, MINIMUM PAYOUT 15$,
    YES ITS FREE TO JOIN
    http://www.MoneyBumper.com/Main.cfm?R=134526

Saturday, April 3, 2010

Print all even numbers from 1 to 100


/*Print all even numbers from 1 to 100 */

#include<stdio.h>
#include<conio.h>
void main()
{
int i;
clrscr();
printf("Print  all even numbers from 1 to 100\n");
printf("Even Numbers are:\n");
for(i=1;i<=100;i++)
{
 if(i%2==0)
 printf("%d ",i);
}
getch();
}


  1. Read & Rate interesting articales to earn money!
    per artical $0.03 to $0.10
    link: http://www.readbud.com/?ref=4096068


  2. EARN MONEY BY BUMPING SITES, DAILY 5 ADS TO CLICK,
    PER CLICK 0.02$, DAILY 0.10$ EARN, MINIMUM PAYOUT 15$,
    YES ITS FREE TO JOIN
    http://www.MoneyBumper.com/Main.cfm?R=134526

WAP to check enter no. is prime or not


/*WAP to check enter no. is prime or not*/

#include<stdio.h>
#include<conio.h>
void main()
{
int num1,num,flage,i=2;
clrscr();
printf("enter no.");
scanf("%d",&num);
num1=num/2;
while(i<=num1)
{
if(num%i==0)
{
flage=1;
}
i++;
}
{
if(flage==1)
printf("not prime");
else
printf("prime");
getch();
}
}


  1. Read & Rate interesting articales to earn money!
    per artical $0.03 to $0.10
    link: http://www.readbud.com/?ref=4096068


  2. EARN MONEY BY BUMPING SITES, DAILY 5 ADS TO CLICK,
    PER CLICK 0.02$, DAILY 0.10$ EARN, MINIMUM PAYOUT 15$,
    YES ITS FREE TO JOIN
    http://www.MoneyBumper.com/Main.cfm?R=134526

ADS

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

AddMe

Bookmark and Share