This commit is contained in:
Mert Gör 🇹🇷 2024-10-29 09:52:32 +03:00
parent ed15ce44d4
commit ca1b5e05cf
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
4 changed files with 54 additions and 0 deletions

View File

@ -1,3 +1,21 @@
2024-10-29 Mert Gör <mertgor@masscollabs.xyz>
* c-basic/hex.c: Experımental Branch page 21
#include <stdio.h>
int main()
{
int a, b;
printf("Enter a number: \n");
scanf("%x", &a);
printf("a = %d\n", a);
return 0;
}
2024-10-23 Mert Gör <hwpplayer1@debian>
* (cc1): Tüm dersler incelendi. Pratiğe dökülecek konular : GNU Emacs, Linux kernel, Assembly(80X86 ve arm)

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;
}