Earn by twitter on twivert

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

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

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