1
#include<stdio.h> int main() { char name[50];int character[26]={0};int i=0,j;int length=0;while(name[i++]!=‘\0‘){length++;}printf("%d",length);for(i=0;i<lenght;i++){for(j=0;j<26;j++){if(name[i]==j+97){character[j]++;break;}printf("%d",a[i]);}return 0;}
4
#include <stdio.h> void prt(int n) { printf("%d ",n%10); if(n>10) prt(n/10); } int main(void) { int a; printf("请输入整数:"); scanf("%d",&a); prt(a); return 0; }
时间: 2024-10-06 00:42:49