diff --git a/c-basic/scanf_example.c b/c-basic/scanf_example.c new file mode 100644 index 0000000..fe4fa30 --- /dev/null +++ b/c-basic/scanf_example.c @@ -0,0 +1,12 @@ +#include + +int main() +{ + int a; + + printf("enter the a number:"); + scanf("%d", &a); + printf("a number is : %d\n", a); + + return 0; +}