jweinst1
1/20/2016 - 6:51 PM

basic user input function in C

basic user input function in C

#include "stdio.h"


//basic user input in C

int main() {
    
    setvbuf(stdout, NULL, _IONBF, 0);
    int f;
    printf("Say a number:");
    scanf("%d", &f);
    f += 50;
    printf("Here is the new number %d", f);
    return 0;
}