Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- main()
- {
- int a,b,c;
- printf("Enter three numbers\n");
- scanf("%d %d %d", &a, &b, &c);
- printf("The numbers : %d %d %d",a,b,c);
- printf("\nEnter three numbers\n");
- /*first value has 2digits, second value is skipped*/
- scanf("%d %*d %d", &a, &b, &c);
- printf("First three numbers : %d %d %d",a,b,c);
- printf("\nEnter nine digit number\n");
- scanf("%3d %4d %3d", &a, &b, &c);
- printf("Number is split into : %d %d %d",a,b,c);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement