Scanf example

This commit is contained in:
Mert Gör 2024-06-30 15:16:57 +03:00
parent e0dfc90937
commit 25cc0af5c2
No known key found for this signature in database
GPG key ID: 03E547D043AB6C8F
2 changed files with 13 additions and 0 deletions

11
c-basic/scanf.c Normal file
View file

@ -0,0 +1,11 @@
#include <stdio.h>
int main(){
int a;
printf("enter a number:");
scanf("%d", &a);
printf("Your number: %d\n", a);
return 0;
}