Array and Strings – Algebra – Problem #3

IIT Kharagpur CS10001 / CS11001 Programming and Data Structures Lab Question Archive

Difficulty: medium

Problem Statement

Write a C program to read from keyboard the roll number (unsigned integer) and CGPA (float) of upp to 10 students. User will first enter the number of such students for which inputs will have to be taken (maximum 10). Use two arrays of maximum size of 10 each. a. Display the details read, nicely formatted b. Display the average CGPA of the students. c. Display the roll numbers and CGPA of all students having identical CGPA (for checking equality of CGPA, consider two digit accuracy).

Back to Lab Problems
Array and Strings/Algebra/Problem #3

Lab Problem Statement

Specifications & Problem DetailsIIT Kharagpur PDS Archive
Loading question...

Interactive C Compiler · Problem #3

WASM In-Browser

Runs directly on your machine · Zero remote server dependency

Compiler downloads on first Run (large, saved in your browser after that)
main.cCtrl + Enter to run
1
2
3
4
5
6
7
Input (stdin)given to scanf / cin
Output

Output appears here. Press Run to compile and execute.