Scanf two numbers

This commit is contained in:
Mert Gör
2024-06-30 15:20:16 +03:00
parent 25cc0af5c2
commit de6254a849
2 changed files with 15 additions and 0 deletions

13
c-basic/scanf_2.c Normal file
View File

@ -0,0 +1,13 @@
#include <stdio.h>
int main()
{
int a;
int b;
printf("enter two numers a and b:");
scanf("%d%d", &a, &b);
printf("a = %d, b = %d\n", a, b);
return 0;
}