I have this C code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
    int a;
    printf("Please enter a number:\n");
    scanf("%d",&a);
    printf("Your number is: %d\n",a);
    system("echo %d",a);
}
I'm interested in the last command, the system() function and why I can't print my variable like i printed it with printf(). I want to be able to ask the user some input , let's say a string and then pass it to the system function. 
Practical example:
Ask user for folder name
system("mkdir %s", FolderName);
Thank you in advance! :)