SHARE
TWEET

Untitled

marcocrepaldi Feb 26th, 2020 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     #include <iostream>
  2.     #include <cstdlib>
  3.    
  4.     using namespace std;
  5.    
  6.     int main() {
  7.        
  8.         int n1,n2,res;
  9.         char opc;
  10.        
  11.         inicio:
  12.        
  13.         system("cls");
  14.        
  15.         cout << "Digite o valor da nota 1: ";
  16.         cin >> n1;
  17.        
  18.         cout << "Digite o valor da nota 1: ";
  19.         cin >> n1;
  20.        
  21.         res=n1+n2;
  22.        
  23.         if(res >=60){
  24.             cout << "\nAluno aprovado ";       
  25.         }else if(res>=40){
  26.             cout << "\nAluno em Recuperação";
  27.         } else{
  28.             cout << "\nAluno Reprovado";
  29.         }
  30.        
  31.         cout << "\nGostaria de calcular outra nota Digite (S/N) para continuar: ";
  32.         cin >>opc;
  33.        
  34.         if(opc == 's' or opc== 'S') {
  35.             goto inicio;
  36.         }
  37.        
  38.        
  39.        
  40.                
  41.     return 0;
  42.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top