diff --git a/buggy.c b/buggy.c index 033b3e4..79b4d2f 100644 --- a/buggy.c +++ b/buggy.c @@ -1,17 +1,17 @@ -#include -#include - -//FIND AND FIX THE MISTAKES IN THIS CODE - -void main() -{ - char password[80); - - print("Create a password: "]: - scanf("%s", password); - - integer passwordlength; - passwordlength = strlen(password); - printf("Your password is %s and %i characters long', password, passwordlength) - -} + 1 #include + 2 #include + 3 + 4 //FIND AND FIX THE MISTAKES IN THIS CODE + 5 + 6 void main() + 7 { + 8 char password[80]; + 9 +10 printf("Create a password: "); +11 scanf("%s", &password); +12 +13 int passwordlength = 0; +14 passwordlength = strlen(password); +15 printf("Your password is %s and %i characters long \n", password, passwordlength); +16 +17 }