rusi/ручные_тесты/name.c

23 lines
721 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ============================================================
// Программа с вводом имени пользователя
// ============================================================
// ./rusi.elf -o ./ручныеесты/name ./ручныеесты/name.c
// ./ручныеесты/name
#включить <stdio.h>
цел главн(пусто) {
символ имя[100];
// Запрос имени
printf("Как вас зовут? ");
// Ввод строки с клавиатуры
scanf("%99s", имя);
// Приветствие
printf("Привет, %s! Добро пожаловать в RUSI!\n", имя);
возврат 0;
}