scanf example
This commit is contained in:
parent
a225a6f70b
commit
c363e9df17
22
c-basic/scanf-example.c
Normal file
22
c-basic/scanf-example.c
Normal 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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user