Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<string>
- using namespace std;
- struct student {
- string name;
- float final_mark;
- };
- int main(int argc, char** argv) {
- student stu;
- cout<<" Please enter the students names"<<endl;
- cout<<" followed by thier degrees:"<<endl;
- for ( int i = 0; i < 100 ; i )
- {
- cin >> stu.name ;
- cin >> stu.final_mark ;
- }
- cout<<" students who passed are:"<< endl;
- for ( int i = 0; i < 100 ; i )
- {
- if (stu.final_mark>= 60 )
- cout << stu.name << endl;
- // cout << stu.final_mark;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement