#include <stdio.h>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int i, total =4;
FILE*documents;
documents=fopen("cobi.txt","a");
if (documents==NULL)
{
cout<<"File gagal dibuka \n";
}
else{
for (i=1; i<= total; i++){
fputc('G', documents);
fputc('\n', documents);
}
}
return 0;
}
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int i, total =4;
FILE*documents;
documents=fopen("cobi.txt","a");
if (documents==NULL)
{
cout<<"File gagal dibuka \n";
}
else{
for (i=1; i<= total; i++){
fputc('G', documents);
fputc('\n', documents);
}
}
return 0;
}