1.

Write a C program to create a file named "vtu.txt" which holds the records of student detail(vtu-no,name, mark1, mark2, mark3) calculate the total, average and display it.​

Answer»

simple method if u CALCULATE SUPPOSE p,c,m three SUBJECT u calculate avghere is solutions #include #include main (){float p,c ,m,sum,avg;ckrscr (){printf ("ENTER subjects=");scanf ("%F%f%f",&p,&c,&m,sum,avg);sum=p+c+m;avg=sum/5;printf ("sum=%f\avg=%f",sum,avg);getch ();}



Discussion

No Comment Found