Introduction - If you have any usage issues, please Google them yourself
Input sample: Five 12457 Three Output sample: 123457 Note: there is a "space" behind the last data of the problem. * / #include <stdio.h> #include <stdlib.h> #define N 10 Int main () {int a[N], I, N, X; Scanf ("%d", &n); For (i=0; i<n; i++) Scanf ("%d", &a[i]); Scanf ("%d", &x); For (i=n; i>0; i--) If (x>a[i-1]) Break; Else A[i]=a[i-1]; A[i]=x; For (i=0; i<=n; i++) Printf ("%d", a[i]); Note: the back / the last data to have a "space" Return 0; }