c-course/c-basic/scanf-example.c
2024-01-24 14:54:16 +03:00

23 lines
412 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @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;
}