c-course/c-basic/scanf-example.c

23 lines
412 B
C
Raw Normal View History

2024-01-24 14:54:16 +03:00
/**
* @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;
}