🔒 Closed Pa help po pa debug po ito

Status
Not open for further replies.

thelastswordsma

Forum Guru
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.webp
 
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
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 634
    Views
  • 4
    Participants
Last reply from:
PHC_LaCe12

Trending Topics

Online now

Members online
1,057
Guests online
942
Total visitors
1,999

Forum statistics

Threads
2,274,917
Posts
28,959,318
Members
1,233,485
Latest member
senpaikatzu_88
Back
Top