Advertisement
idsystems

CPP_Practica54_Ingenieros2050

Mar 13th, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. // Program: ing.cc
  2. // Author:  Yoan Pinzon
  3. // Date:    Agosto 30, 2006
  4.  
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. int main(){
  10.    double p=4000.0;
  11.  
  12.    for(int i=2007; i<=2050; i++)
  13.       cout << i << "->" << (p*=1.11) << endl;
  14.  
  15.    return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement