Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

solve this problem please

–1 vote
asked Oct 25, 2018 by Amr Mehana (150 points)

Write a program to read students’ IDs and scores into two arrays from the user. Then, when the user request a student ID the program should print the corresponding student’s score

2 Answers

0 votes
answered Oct 28, 2018 by anonymous
#include <stdio.h>
void main()
    int id[5]={1,2,3,4,5};
    int score[5]={51,85,65,89,62};
    int i,b,sc;
    printf("enter the id of the student");
    printf("marks of student with id %d is %d",b,sc);
0 votes
answered Jan 22, 2019 by Jyothi_Rk
You can do it using Linked list.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.