LAB3F.CPP - #include<stdio.h>#include<conio.h>#define rows 4#define cols 4 void main(void clrscr name float student[rows[cols float

LAB3F.CPP - #include<stdio.h>#include<conio.h>#define rows...

This preview shows page 1 out of 1 page.

#include<stdio.h> #include<conio.h> #define rows 4 #define cols 4 void main(void) { clrscr(); name(); float student[rows][cols]; float no,marks_1,marks_2,marks_3; int index=0,outdex; printf("Enter five digit Roll no. :\nThen student's marks (231 88 95 100)"); printf("\nEnter 0 0 to Quit."); do { printf("\nEnter roll no. and Marks:"); scanf("%f%f%f%f",&no,&marks_1,&marks_2,&marks_3); student[index][0]=no;
Image of page 1

Unformatted text preview: student[index][1]=marks_1; student[index][1]=marks_2; student[index][1]=marks_3; } while(student[index++][0]!=0); for (outdex=0;outdex&lt;index-1;outdex++) { printf(&quot;Student %5.0f&quot;,student[outdex][0]); printf(&quot;\nStudent %2.2f&quot;,student[outdex][1]); printf(&quot;\nStudent %2.2f&quot;,student[outdex][2]); printf(&quot;\nStudent %2.2f&quot;,student[outdex][3]); } getch(); }...
View Full Document

  • Spring '15
  • R. Boylested

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes