0
#include <iostream>
using namespace std;
int main()
{   int BSR;
    int HighBSR=0 , LowBSR=0 , NormalBSR=0;
    int patients=0,sum =0;
    int count=0;
    cin>>patients;
    while(patients != -1)}{{
    {if 
        ( BSR ==120 )//HighBSR+=patients;
        }
        { else if ( BSR>70 && BSR<120 )//NormalBSR+=patients;
    else ( BSR<=70 )//LowBSR+=patients;}
    ; count++;
    cin>>patients;}}
    cout<<"The Number Of All Patients is:"<<patients;
    cout<<"The Number Of Patients With High BSR is:"<<HighBSR;
    cout<<"The Number Of Patients With Normal BSR is:"<<NormalBSR;
    cout<<"The Number Of Patients With Low BSR is:"<<LowBSR;
    float percentage;
    percentage=(HighBSR/10)*100;
    cout<<"The Percentage Of High BSR is:"<<percentage;
    return 0;
}

dunno what is the error
i've tried all ways
but i didn't find a solution

Edited by mike_2000_17: Fixed formatting

3
Contributors
2
Replies
5
Views
6 Years
Discussion Span
Last Post by pseudorandom21
0

You have a close curly brace after your while statement that shouldn't be there. Please re post your code with code tags to make it easier to read. Also you might want to look up proper indenting and code formatting styles.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.