Advertisement
icatalin

functie p

Oct 2nd, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. using namespace std;
  5. ifstream f("date.in");
  6. ofstream g("date.out");
  7.  
  8. void informatica (int k)
  9. {
  10. int i;
  11. for (i=1;i<=k;i++)
  12. g<<"informatica"<<" ";
  13. }
  14.  
  15. int main ()
  16. {
  17. int k;
  18. f>>k;
  19. informatica (k);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement