Itssuman1808

Program to Display entered number with right and left justi

Sep 3rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. // Program to Display entered number with right and left justification.
  2. #include<stdio.h>
  3. void main()
  4. {
  5. int num1;
  6. printf("Enter the number: ");       //coded byItsSuman
  7. scanf("%d",&num1);
  8. printf("%d",num1);                  //luv coding find happiness
  9. printf("%16d",num1);
  10. }
Add Comment
Please, Sign In to add comment