This commit is contained in:
Mert Gör
2024-10-29 09:52:32 +03:00
parent ed15ce44d4
commit ca1b5e05cf
4 changed files with 54 additions and 0 deletions

12
c-basic/hex.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
int main()
{
int a, b;
printf("Enter a number: \n");
scanf("%x", &a);
printf("a = %d\n", a);
return 0;
}

10
c-basic/scanf.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
int main()
{
int a;
printf("enter a number : \n");
scanf("%d,", &a);
printf("your number is : %d\n", a);
}

14
c-basic/scanf_ab.c Normal file
View File

@ -0,0 +1,14 @@
#include <stdio.h>
int main()
{
int a, b;
printf("enter 'a' number : \n");
scanf("%d,", &a);
printf("enter 'b' number : \n");
scanf("%d, ", &b);
printf("your numbers a = %d , b = %d\n", a, b);
return 0;
}