Advertisement
RenatoLopes

Untitled

Sep 29th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int a;
  9. int b;
  10. int c;
  11. int bSUM;
  12. int acMULT;
  13. int abcSUM;
  14.  
  15.  
  16. cout << "Especifique a \n";
  17. cin >> a;
  18.  
  19. cout << "Especifique b \n";
  20. cin >> b;
  21.  
  22. cout << "Especifique c \n";
  23. cin >> c;
  24.  
  25.  
  26. bSUM = b * b;
  27. acMULT = -4 * a * c;
  28. abcSUM = bSUM + acMULT;
  29.  
  30. cout << "Discriminante: " abcSUM;
  31.  
  32. // Managed to accomplish this on 5 tutorials!
  33. // Consegui isso em 5 tutoriais!
  34.  
  35. //Resultado 1
  36.  
  37.  
  38.  
  39. return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement