C++ program to Store information of 10 students using structure

C++ program to store information of 10 students using structure

In this example, you will get a program code to store information of 10 students using structure in c++ programming.

Program:

 

Output:

Enter name, Roll No, Marks of student 1 => ajay 1 78

Enter name, Roll No, Marks of student 2 => kishan 2 67

Enter name, Roll No, Marks of student 3 => aliya 3 92

Enter name, Roll No, Marks of student 4 => rohan 4 85

Enter name, Roll No, Marks of student 5 => kartik 5 78

Enter name, Roll No, Marks of student 6 => rohan 6 94

Enter name, Roll No, Marks of student 7 => rajiv 7 82

Enter name, Roll No, Marks of student 8 => tanishq 8 69

Enter name, Roll No, Marks of student 9 => neha 9 72

Enter name, Roll No, Marks of student 10 => divyansh 10 89

Print data Record……
Name: ajay
Roll: 1
Marks: 78
Name: kishan
Roll: 2
Marks: 67
Name: aliya
Roll: 3
Marks: 92
Name: rohan
Roll: 4
Marks: 85
Name: kartik
Roll: 5
Marks: 78
Name: rohan
Roll: 6
Marks: 94
Name: rajiv
Roll: 7
Marks: 82
Name: tanishq
Roll: 8
Marks: 69
Name: neha
Roll: 9
Marks: 72
Name: divyansh
Roll: 10
Marks: 89

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top