fork download
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int const HUNDRED = 100;
  5.  
  6. int main() {
  7. int sapt_trecuta, sapt_curenta, procent;
  8. cin >> sapt_trecuta >> sapt_curenta;
  9. procent = ((sapt_curenta - sapt_trecuta) * HUNDRED) / sapt_trecuta;
  10. cout <<procent;
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
1