Answers for "how to get int from input c program"

C
9

c how to get an integer from user input

#include <stdio.h>
int main() {   
    int number;   
    printf("Enter an integer: ");  
    scanf("%d", &number);
    printf("You entered: %d", number);    
    return 0;
}
Posted by: Guest on June-13-2020
0

get int from user c

#include <stdio.h>

int n;
scanf("%d",&n);
Posted by: Guest on March-25-2021

Code answers related to "C"

Browse Popular Code Answers by Language