Computer Science, asked by PoushaliSen, 5 hours ago

1st
Accept
1 name of the student
2 name of school
3 class and section
4 roll no

5 accept marks of all subject
(Eng, ben, maths, sans, phy sci, life sci, his, geo, com,)100(valu edu, gk)50 of 10 students
Calculate total out of 1000

Print
1st line Name of the student
2nd name of the school
3rd class.... sec ....roll...
4th percentage of marks obtained by the student
Using next loop of qbasic

Answers

Answered by raunaksharma200724
0

Answer:

kya poochna chahte ho tum

Answered by shilpa85475
0

The ouput is:

1st line Name of the student

2nd name of the school

3rd class.... sec ....roll...

4th percentage of marks obtained by the student

Explanation:  

#include<stdio.h>  

   #include<conio.h>  

   main()

   {

     int roll_no,m1,m2,m3,m4,m5,m6,m7,m8,m9,m10,m11,total;

     float average;

     clrscr();

printf("Enter the name of the student : ");

scanf("%c", &charstudname);

printf("Enter the name of the student : ");

scanf("%c", &charstudnameschool);

     printf("Enter roll number : ");

     scanf("%d",&roll_no);

     printf("Enter marks 1 : ");  

     scanf("%d",&m1);

     printf("Enter marks 2 : ");

     scanf("%d",&m2);

     printf("Enter marks 3 : ");

     scanf("%d",&m3);

printf("Enter marks 3 : ");

     scanf("%d",&m3);

printf("Enter marks 4 : ");

     scanf("%d",&m4);

printf("Enter marks 5 : ");

     scanf("%d",&m5);

printf("Enter marks 6 : ");

     scanf("%d",&m6);

printf("Enter marks 7 : ");

     scanf("%d",&m7);

printf("Enter marks 8 : ");

     scanf("%d",&m8);

printf("Enter marks 9 : ");

     scanf("%d",&m9);

printf("Enter marks 10 : ");

     scanf("%d",&m10);

printf("Enter marks 11 : ");

     scanf("%d",&m11);

     total=m1+m2+m3+m4+m5+m6+m7+m8+m9+m10+m11;

     average=total/11.0;

per=average*100

printf("\nStudent Name : %c",charstudname);

printf("\nStudent school name : %c",charstudnameschool);    

printf("\nStudent Roll Number : %d",roll_no);

     

     

 printf("\npercentage : %f ",per);

     getch();

   }

Similar questions