Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- int main ()
- {
- char name[20];
- int Ergebnis = 0;
- printf ("Gebe einen Namen ein:\t");
- scanf ("%s", &name);
- for (int i = 0; i < strlen (name); i++)
- {
- Ergebnis += name[i];
- }
- printf ("\n\nDas Passwort lautet: %i", Ergebnis);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement