About Me

My photo
gandhinagar, gujarat, India
hi.. friends i'am student of kv crpf gandhinagar..and i would like to spread my view and thinking on computer..this blog is for not only those who wants to get knowledge.

Thursday 5 May 2011

INTERESTED IN C LANGUAGE ???????    SHOW THIS:-
to create a mark sheet for your test :-



#include<conio.h>
#include<stdio.h>
  int i;
void line();
void main()
{
float a=98.65,b=91.6,c=88.9,d=89.2,total,per;
total=a+b+c+d;
per=total/4;
clrscr();
printf("\n\t\t\t\tmarksheet\n");
line();
printf("\n\n\t\tsubject\t\t\t\tmarks\n");
line();
printf("\n\n\t\tmaths\t\t\t\t%.2f",a);
printf("\n\n\t\tscience\t\t\t\t%.2f",b);
printf("\n\n\t\tjava\t\t\t\t%.2f",c);
printf("\n\n\t\tc++\t\t\t\t%.2f\n",d);
line();
printf("\n\n\t\ttotal\t\t\t\t%.2f\n",total);
printf("\n\n\t\tper\t\t\t\t%.2f\n",per);
line();
getch();
}
void line()
{
printf("\t");
for(i=1;i<=60;i++)
{
printf("-");
}
}

0 comments:

Post a Comment