C උදවුවක් !!!!!!!!!!!!!!!!

isurutmv

Well-known member
  • May 1, 2013
    1,946
    825
    113
    29
    Gampaha


    Write a C program to read a record of “n” student details using an array with two fields (Name ,Marks ). Using suitable nested loop write a program to display students mark with progress bar like below according to value that user entered.


    Eg: Amal [= = = = = = = = ] 45%

    Kamal [= = = = = = = = = = = = = ] 60%

    Nimal [= = = = = = = = = = = = = = = = = = =] 100%


    මෙන්න මේ ප්‍රෝග්‍රෑම් එක ලියන්නේ කොහොමද බන් මේකේ විදිහට එකම array එකක Name & marks දන්නේ කොහොමද මොකද ඒ දෙක වෙනස් data type දෙකක්නේ අනික Names දාන්න cha array එකක්නේ ගන්න වෙන්නේ එතකොට කොහොමද මේක කරන්නේ


     

    techboy2007

    Junior member
  • Feb 24, 2007
    72
    9
    8
    you can declare a struct array

    typedef struct _StudentMarks
    {

    char sz_name[100];
    int nMarks
    }STUDENT_MARKS;

    now create and array of

    STUDENT_MARKS[NO_OF_STUDENTS]

    now use any kind of loop and fill this info
     
    • Like
    Reactions: Helo1