# 160809311 Wang Chongyang seventh time homework

Source: Internet
Author: User

`#include <stdio.h>#include<string.h>intMain () {Charname[0]; intlength,i,a[ -]={0}; printf ("Enter your own name pinyin:"); scanf ("%s", name); Length=strlen (name);  for(i=0; i<length;i++) {A[name[i]-'a']++; }             for(i=0;i< -; i++) {printf ("%c:%d a \ n",'A'+I,a[i]); }        return 0;}`
`#include <stdio.h>intMain ()//Reverse Array Store output{    inta[Ten],b[Ten],m,n,i; printf ("do you want to enter a few (less than 10) numbers? \ n"); scanf ("%d",&N); printf ("Please enter this%d integer \ n", N);  for(i=0; i<n;i++) scanf ("%d",&A[i]);  for(i=0; i<n;i++) {B[i]=a[n-i-1]; printf ("%d", B[i]); }return 0;}`
`#include <stdio.h>voidRintN) {    if(!N)return; printf ("%d", n%Ten); R (n/Ten);} intMain () {intnum; printf ("Please enter a multi-digit number:"); scanf ("%d",&num);    R (num); return 0;}`
`#include <stdio.h>intMain () {intn,m,x,y,a[ -],b[ -]; printf ("There are several numbers in the first group:"); scanf ("%d",&N); printf ("respectively:"); inti,j;  for(i=1; i<=n;i++) {scanf ("%d",&x); A[i]=x; } printf ("There are several numbers in the second group:"); scanf ("%d",&m); printf ("respectively:");  for(i=1; i<=m;i++) {scanf ("%d",&y); B[i]=y; } printf ("they are in common:");  for(i=1; i<=n;i++)     {         for(j=1; j<=m;j++)        {             if(a[i]==B[j]) printf ("%d", A[i]); }     }        return 0;}`

160809311 Wang Chongyang seventh time homework

Related Keywords:

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

## A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

• #### Sales Support

1 on 1 presale consultation

• #### After-Sales Support

24/7 Technical Support 6 Free Tickets per Quarter Faster Response

• Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.