Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int securityCode;
- int encrypted[5];
- printf("Please enter your 4 digit personnel number: \n");
- scanf("%d", &securityCode);
- sscanf(securityCode, "%d", encrypted);
- for (int j; j < 5; i++){
- encrypted[i] = i + 7 %10;
- }
- for (int i; i < 5; i++){
- encrypted[i] = i + 7 %10;
- }
- printf("Your securityCode is %d\n", encrypted);
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement