fork download
  1. #include <iostream>
  2. using namespace std;
  3. int num=0;
  4. int numtotal=0;
  5. int res;
  6. int main() {
  7. while (numtotal<=10){
  8. //cout<<num<<"+"<<(num+1)<<endl;
  9. res=num+(num+1);
  10.  
  11. numtotal++;
  12. num++;
  13. }
  14. cout<<"Resultado"<<(num+(num+1))<<endl;
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Resultado23