Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int space(int n)
- {
- int i;
- for(i=0;i<n;i++)
- printf(" ");
- return 0;
- }
- int main()
- {
- int a,b,x;
- printf("Enter two numbers:-");
- scanf("%d%d",&a,&b);
- printf("Enter the number of spaces: ");
- scanf("%d",&x);
- printf("%d",a);
- space(x);
- printf("%d",b);
- fflush(stdin);
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement