Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdio.h"
- #include "stdlib.h"
- int main ()
- {
- int n, p, br=0, i;
- printf ("Uneti broj \n");
- scanf ("%d", &n);
- int a[50];
- if (n<0)
- {
- n=n*(-1);
- }
- p=n;
- while (p!=0)
- {
- p=p/10;
- ++br;
- }
- for(i=br-1;i>=0;i--)
- {
- a[i]=n%10;
- n=n/10;
- }
- for (i=0;i<br-1;i++)
- {
- printf ("%d%d ",a[i],a[i+1]);
- }
- system ("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement