inth(intn){if(n==1)return1;elsereturnh(n-1)*2+1;}intmain(){intn=0;while(n<1){printf("请输入大于等于1的数:\n");scanf("%d",&n);if(n<1){printf("输入错误请重新输入\n");}}printf("输出值为:%d\n",h(n));return0;}