~cpp
#include <iostream>
using namespace std;
int main()
{
int a,b,c;
char str[100];
printf("a = ");
scanf( "%d", &a );
printf("b = ");
scanf( "%d", &b );
printf("c = ");
scanf( "%d", &c );
printf("Input filename : ");
scanf( "%s", str);
//FIlE 기
FILE *fpt_1;
fpt_1 = fopen( str, "w");
fprintf( fpt_1, "a = %d \nb = %d \nc = %d", a,b,c); //printf
fclose(fpt_1);
system("pause");
return 0;
}









