Answers for "c user input integer"

C
15

c user input

#include <stdio.h>
int main()
{
    char chr;
    printf("Enter a character: ");
    scanf("%c",&chr);     
    printf("You entered %c.", chr);  
    return 0;
}
Posted by: Guest on April-14-2020
3

c user input

#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