c primer plus 3.11-2

 

#include <stdio.h>

int main(void)
{
    int ch;
    
    printf("please input an number for char type: ");
    scanf("%d", &ch);
    
    printf("%d is equivalent to %c.\n", ch, ch);
    
    return 0;
}

 

posted @ 2021-07-27 23:29  小鲨鱼2018  阅读(26)  评论(0编辑  收藏  举报