shegues

telephoneNumber.c

Jan 30th, 2021
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(void)
  3. {
  4.     int g1, g2, g3;
  5.     printf("Enter your telephone number in the form [(xxx) xxx-xxxx]: \n");
  6.     scanf("(%d) %d-%d", &g1, &g2, &g3);
  7.     printf("You entered %d.%d.%d\n", g1, g2, g3);
  8.     printf("%d\n", g2);
  9.     printf("%d\n", g3);
  10.  
  11.     return 0;
  12. }
Add Comment
Please, Sign In to add comment