#include <stdio.h>intMain ()//Change the value in "" To change the number of numbers, and change the condition of I can be{ intI, a[6]; printf ("Please enter 6 numbers:"); for(i=0; i<6; i++) {scanf ("%d",&A[i]); } for(i=5; i>-1; i--) {printf ("%d", A[i]); } printf ("\ n"); return 0; }
#include <stdio.h>intMain ()//Reverse Output{ inta[Ten],temp; int*p,*Q; printf ("Please enter 10 integers separated by a space:"); for(p=a;p<a+Ten;p + +) scanf ("%d", p); for(p=a,q=a+9;p <q;p++,q--) {Temp=*p; *p=*Q; *q=temp; } printf ("reverse output of 10 integers:"); for(p=a;p<a+Ten;p + +) printf ("%d",*p); return 0;}
#include <stdio.h>intmain ()//name {intcnt[ the]={0}; Charname; printf ("Please enter your English name and end it with. \ n") ; printf ("Please enter:"); inti; Do{scanf ("%c",&name); if(name>='A'&& name<'Z') cnt[name-'A']++; if(name>='a'&& name<'Z') cnt[ -+name-'a']++; } while(name!='.'); for(i=0;i< -; i++) {printf ("%c%d\n",'A'+I,cnt[i]); } for(i=0;i< -; i++) {printf ("%c%d\n",'a'+i,cnt[ -+i]); } return 0;}
Seventh time Assignment