Scanf example
This commit is contained in:
parent
e0dfc90937
commit
25cc0af5c2
@ -1,5 +1,7 @@
|
||||
2024-06-30 hwpplayer1 <hwpplayer1@debian>
|
||||
|
||||
* c-basic/scanf.c: Scanf example
|
||||
|
||||
* c-basic/printf.c: printf example
|
||||
|
||||
* c-basic/foo.c: Foo example
|
||||
|
11
c-basic/scanf.c
Normal file
11
c-basic/scanf.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
int a;
|
||||
|
||||
printf("enter a number:");
|
||||
scanf("%d", &a);
|
||||
printf("Your number: %d\n", a);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user