C Program to copy contents of one file into another

C Program to copy all the contents written in a file to another file.

#include<stdio.h>
#include<stdlib.h>
int main(){
FILE *fs,*ft;
char ch;
fs=fopen("pr1.txt","r");
if(fs==NULL)
{
puts("Cannot open source file");
exit(1);
}
ft=fopen("pr2.txt","w");
if(ft==NULL)
{
puts("cannot open target file");
fclose(fs);
exit(2);
}
while(1)
{
ch=fgetc(fs);
if(ch==EOF)
break;
else
fputc(ch,ft);
printf("%c",ch);
}
while(fgetc(ft)!=EOF){
printf("%c",fgetc(ft));
}
fclose(fs);
fclose(ft);
return 0;
}