Home > Back-end >  The c language
The c language

Time:10-10

Five integer data input, begged them to single digits and

CodePudding user response:

Be free and at leisure, to write a play,
 # include & lt; Stdio. H> 
# include & lt; stdlib.h>

Int main (void)
{
# define N 5
Unsigned gusum=0, inpud [1].

For (unsigned m=0; M & lt; N; M + +)
The scanf (" % d ", inpud), gusum +=* inpud % 10;

Printf (" % u \ n ", gusum);
}
  • Related