What's new

Help Pa help po pa debug po ito

thelastswordsma

Forum Guru
Elite
Joined
Sep 7, 2016
Posts
1,361
Solutions
2
Reaction
6,310
Points
1,236
Age
22
pa elp po pa debug po ito

#include <iostream>
using namespace std;


int main ()
{
int discrete structure 1, css 2, computing 3, mmw 4, uself 5, ave;

cout << " Enter Subject 1: ";
cin >> (discrete structure 1);
cout << " Enter Subjec5 2: ";
cin >> (css 2);
cout << " Enter Subject 3: ";
cin >> (computing 3);
cout << " Enter Subject 4: ";
cin >> (mmw 4);
cout << " Enter Subject 5: ";
cin >> (uself 5);

ave = (discrete structure 1+css 2+computung 3+ mmw 4+ uself 5)/5;

if ((ave >=3) && (<=1))
if (ave >1)
{
cout << "Congratulations \n ";
cout << " Excellent" ;
}
else if (ave > 1.25)
cout << " Superior";
else if (ave > 2.25)
cout << " Satisfactory";
else if (ave > 3)
cout << "Passed";
else
cout << "Failed";
else cout << "Invalid Average Grade" ;

return 0;
}
1625727587303.png
 

Attachments

Last edited:
dapat try muna sa compiler to

para labas ang error nito

use codeblocks para dyan

ps: uninstall ko na ang codeblocks at this time hehehe
 

Similar threads

Back
Top