Advertisement
rotti321

Testare glicemie

Dec 3rd, 2021
925
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5. int main() {
  6.     int glicemie;
  7.     cout<<"Indice glicemie:";
  8.     cin>>glicemie;
  9.     if(glicemie>=60 && glicemie <=99){
  10.         cout<<"Glicemie normala"<<endl;
  11.     }
  12.     if(glicemie>=100 && glicemie <=125){
  13.         cout<<"Glicemie bazala modificata"<<endl;
  14.     }  
  15.     if(glicemie>=126){
  16.         cout<<"Diabet zaharat"<<endl;
  17.     }      
  18.        return 0;
  19. }
  20. /*
  21. Normal: 60 – 99 mg/dl
  22. Glicemie bazala modificata: 100 – 125 mg/dl
  23. Diabet zaharat: peste 126 mg/dl
  24. */
Advertisement
RAW Paste Data Copied
Advertisement