اكتب برنامج بلغة C يقرأ الاسم الأول واللقب وسنة الميلاد ويعرض الأسماء والسنة واحدة تلو الأخرى بالتسلسل
- برمجة
- برمجة سي c
- 2021-05-04
- Wassim
الأجوبة
/*Write a program in C that reads a forename, surname and year of birth and display the names and the year one after another sequentially*/
#include <stdio.h>
int main()
{
char firstname[20], lastname[20];
int bir_year;
printf("Input your firstname: ");
scanf("%s", firstname);
printf("Input your lastname: ");
scanf("%s", lastname);
printf("Input your year of birth: ");
scanf("%d", &bir_year);
printf("%s %s %d\n", firstname, lastname, bir_year);
return 0;
}القوائم الدراسية التي ينتمي لها السؤال