Advertisement
Imran1107048

Asif 1(b)

Nov 4th, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6. char addr[30];
  7. int n;
  8. printf("Enter the value of n: ");
  9. scanf("%d",&n);
  10. gets(addr);
  11. if (n%2==0)
  12. {
  13. strcpy(addr ,"ce_activities.htm");
  14. }
  15. else
  16. {
  17. printf("Enter address: ");
  18. gets(addr);
  19. }
  20. printf("URL: aust.edu\civil\%s",&addr);
  21. return 0;
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement