Question : scanf()
Answered by : unusual-unicorn-p2wug9lsj4pe
#include <stdio.h>
int main() { // using scanf() int user_input; printf("Please enter a number: "); scanf("%d", &user_input); printf("You entered: %d", user_input); return 0;
}
Source : https://www.studytonight.com/c/c-input-output-function.php | Last Update : Thu, 28 Oct 21
Question : scanf
Answered by : elated-emu-f159ixs5luyb
#include <stdio.h>
int main()
{ char fn, ln;
printf(" hello your name: ");
scanf("%s", fn);
printf("one more name: ");
scanf("%s", ln);
printf("hello it is you %s %s", fn, ln);
return 0;
}
Source : | Last Update : Sun, 30 Jan 22