Answers for "what is the use of scanf in c"

C
3

how to scanf in c

#include <stdio.h>
int main()
{
    int testInteger;
    printf("Enter an integer: ");
    scanf("%d", &testInteger);  
    printf("Number = %d",testInteger);
    return 0;
}
Posted by: Guest on April-14-2020

Code answers related to "C"

Browse Popular Code Answers by Language