Answers for "C print int"

C
2

c string is int

int isNumber(char s[])
{
    for (int i = 0; s[i]!= ''; i++)
    {
        if (isdigit(s[i]) == 0)
              return 0;
    }
    return 1;
}
Posted by: Guest on October-25-2020
8

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