public class Test{ //中间变量 private String res = "0"; //方法 public int func(int i){ if(i>0){ int temp = i%10; res = res+String.valueOf(temp); func(i/10); } return Integer.valueOf(res); } public static void main(String[] args){ Test t=new Test();
#include <stdio.h> #define Num 10 int main() { int wor = 0; int arr[Num] = {0}; int c,count = 0,i; int flag = 0; printf("Please input at most 10 words.\n"); while((c = getchar()) != EOF) { if(c == '\n' ||c == ' ' || c == '\t') { if(flag ==