Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- FILE *fp1, *fp2;
- double a, b;
- fp1 = fopen("expectedoutput.txt", "r");
- fp2 = fopen("output.txt", "r");
- while(fscanf(fp1, "%lf", &a) != EOF)
- {
- fscanf(fp2, "%lf", &b);
- if(a!=b){
- printf("WORNG ANS!!!!!! TRY AGAIN\n");
- return 0;
- }
- }
- printf("ACCEPTED!!\n");
- fclose(fp1);
- fclose(fp2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement