scanf example

This commit is contained in:
Mert Gör 🇹🇷 2024-01-24 14:54:16 +03:00
parent a225a6f70b
commit c363e9df17
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F

22
c-basic/scanf-example.c Normal file
View File

@ -0,0 +1,22 @@
/**
* @file scanf-example.c
* @author Mert Gör (mertgor@masscollabs.xyz)
* @brief gettıng input source via scancf
* @version 0.1
* @date 2024-01-24
*
* @copyright Copyright (c) 2024 Mert Gör and cotributors - GPLv3 or any later
*
*/
#include <stdio.h>
int main(){
int a;
printf("Enter a number: ");
scanf("%d", &a);
printf("The number you typed is : %d\n", a);
return 0;
}