c语言基础入门的小题

设计一个程序,对输入的四位整数,将其第三位数字转换为对应的字符型输出。

哈喽,有用请点采纳~

#include <stdio.h>
int main()
{
    int num,res;
    scanf("%d",&num);
    res = num / 10 % 10;
    printf("%d",res);
    return 0;
}