How to get the user's input in C

How to get the user's input in C
// example: How to get user input 
#include <stdio.h>

int main(){
	
    int num; 
    printf("Please enter a number: "); 
    scanf("%d", &num); // Save user input to the num variable
    printf("The number you entered is:: %d ",$num); 
	return 0;
}
‮oS‬urce:www.lautturi.com
Created Time:2017-08-29 05:06:25  Author:lautturi