Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main(int argc, char *argv[]) {
- char Userinput[25];
- char Username[25];
- char Password;
- printf("DO YOU ALREADY HAVE AN USERNAME? ENTER Y/N OR ENTER 0 TO EXIT THE PROGRAM\n");
- fgets(Userinput, 25, stdin);
- if(Userinput[1]=='N')
- {
- printf("PLEASE CREATE NEW USERNAME\n");
- fgets(Username, 25, stdin);
- printf("YOUR NEW USERNAME IS %s\n", & Username);
- printf ("PLEASE CREATE NEW PASSWORD\n");
- }
- else if(Userinput[0]=='Y', 'y')
- {
- printf("PLEASE ENTER USERNAME");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment