Advertisement
biswasrohit20

5678

Apr 27th, 2021
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. int main()
  6. {
  7.  
  8. while( 10 < 20 ) {
  9. char in[50];
  10. char out[50];
  11. printf("Enter the input file name: ");
  12. scanf("%[^\n]%*c", in);
  13. printf("Enter the output file name: ");
  14. scanf("%[^\n]%*c", out);
  15. int value = strcmp(in,out);
  16. if ( value == 0){
  17. printf("Cannot use the same file name. Please re-enter.\n\n");
  18. }
  19. else{
  20. printf("Excellent!");
  21. break;
  22. }
  23. }
  24.  
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement