Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- 7. Job Opportunity: Positions
- Hello there, it says here that you are trying to apply for an HR position in our company. We have a little test to know if you are capable of the job. I'm going to give you the numbers of a 5-man team and you're going clarify each of their positions by separating them from one another. Good luck!
- Inputs
- 1. The 5-man team's numbers
- */
- #include <stdio.h>
- int main(){
- int num,s1,s2,s3,s4,s5;
- printf("Enter the 5-man team's numbers: ");
- scanf("%d",&num);
- s1 = num % 10;
- num = num / 10;
- s2 = num % 10;
- num = num / 10;
- s3 = num % 10;
- num = num / 10;
- s4 = num % 10;
- num = num / 10;
- s5 = num % 10;
- printf("%d ",s5);
- printf("%d ",s4);
- printf("%d ",s3);
- printf("%d ",s2);
- printf("%d ",s1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement