#include <stdio.h> #define Num 20 int power(int base,int n) { int p = 1; int i; for(i = 0;i < n;i++) p = p*base; return p; } int main() { int base = 2,n = Num; int i; for(i = 0;i < n;i++) printf("%2d %-6d\n",i,power(base,i)); return…
#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 ==…