kiraventom

Untitled

Dec 29th, 2017
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <locale.h>
  4. #include <stdlib.h>
  5.  
  6. //Прототипы
  7. char getName ();
  8. char putName (char Name[10]);
  9.  
  10. int main() {
  11.     setlocale(LC_ALL, "Russian");
  12.  
  13.     putName (getName());
  14. }
  15.  
  16. char getName () {
  17.     puts ("Введите имя (не более 10 символов):");
  18.     char Name[10];
  19.     fgets (Name, 10, stdin);
  20.     return (Name);
  21. }
  22.  
  23. char putName (char Name[10]){
  24.     printf ("%s", Name);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment