Preview:
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int* iVar;

    iVar = (int*)malloc(sizeof(int));

    printf("Now, input an integer value: ");
    scanf("%d", iVar);

    printf("Great!!! you entered: %d.\n", *iVar);

    free(iVar);

    return 0;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter