Nazmul19285

task-3

Oct 23rd, 2021
821
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6.     char pass[20];
  7.     printf("Enter Password: ");
  8.     scanf("%s", pass);
  9.    
  10.     int l = strlen(pass);
  11.     for(int i=0;i<l;i++) {
  12.         pass[i]=pass[i]+2;
  13.     }
  14.    
  15.     printf("Changed Password is: %s.", pass);
  16.     return 0;
  17. }
RAW Paste Data