【Code】Entrez un nombre entier à trois chiffres et affichez-le dans l'ordre inverse

#include<stdio.h>
main()
{
    int n,a,b,c;
    scanf("%d",&n);
    a=n/100;       //百位 
    b=(n/10)%10;   //十位 
    c=n%10;       //个位 
    printf("\n倒序输出结果:%d%d%d",c,b,a);
}

Je suppose que tu aimes

Origine blog.csdn.net/m0_66411584/article/details/126971268
conseillé
Classement