Earn by twitter on twivert

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

Sunday, April 11, 2010

WAP to enter five subject marks of student & calculat total marks,percentege,average,division


/*WAP to enter five subject marks of student & calculat total marks,percentege,average,division*/

#include<stdio.h>
#include<conio.h>
void main()
{
int os,sm,dm,ppl,dsa,total;
float per,avg;
clrscr();
printf("enter five subjects marks");
scanf("%d%d%d%d%d",&os,&sm,&dm,&ppl,&dsa);
total=os+sm+dm+ppl+dsa;
per=total*100/50;
avg=total/5;
printf("\ntotal=%d",total);
printf("\npercentege=%f\navrege=%f",per,avg);
if(per>=60)
{
printf("\ndiv=first div.");
}
else
if(per>=45 &&per<60)
{
printf("\ndiv=second div");
}
else
if(per>=33 &&per<45)
{
printf("\ndiv=third div");
}
else
{
printf("\ndiv=fail");
}
getch();
}

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