Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <locale.h>
- #include <stdlib.h>
- //Прототипы
- char getName ();
- char putName (char Name[10]);
- int main() {
- setlocale(LC_ALL, "Russian");
- putName (getName());
- }
- char getName () {
- puts ("Введите имя (не более 10 символов):");
- char Name[10];
- fgets (Name, 10, stdin);
- return (Name);
- }
- char putName (char Name[10]){
- printf ("%s", Name);
- }
Advertisement
Add Comment
Please, Sign In to add comment