Answers for "print an int C"

C
6

how to print int in c

#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

print an int C

// the %d is a format specifier that search for a variable containing
// an int in the printf function.
printf("You entered: %d", number);
Posted by: Guest on August-03-2021

Code answers related to "C"

Browse Popular Code Answers by Language