c-course/c-basic/scanf_example_two_numbers.c

14 lines
167 B
C
Raw Normal View History

2025-03-18 14:39:40 +03:00
#include <stdio.h>
int scan_two_numbers()
2025-03-18 14:39:40 +03:00
{
int a, b;
printf("enter two numbers:");
scanf("%d%d", &a, &b);
printf("a = %d, b = %d\n", a, b);
return 0;
}