keymasterviriya1150

Untitled

Sep 8th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstdio>    
  3. using namespace std;
  4. int main()
  5. {
  6.     FILE *fp;
  7.     fp = fopen("writeoutput.txt", "w");
  8.     /*fputs("The first line of writing to the text file.\n", fp);
  9.     fputs("The second line.\n", fp);*/
  10.     for(int i=1;i<=369;i++)
  11.     fprintf(fp,"(\"deer (%d)\")\n,", i);
  12.     fclose(fp);
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment