\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[scaled=0.85]{beramono}
\usepackage[force]{pygmentex}

\begin{document}

This is my C program:

\begin{pygmented}[lang=c]
#include <stdio.h>
int main(void)
{
    int a, b, c;
    printf("Enter two numbers to add: ");
    scanf("%d%d", &a, &b);
    c = a + b;
    printf("Sum of entered numbers = %d\n", c);
    return 0;
}
\end{pygmented}

\end{document}
