SHARE
TWEET

Untitled

a guest Aug 12th, 2017 186 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5.     int a,b,c;
  6.     printf("Enter three numbers\n");
  7.     scanf("%d %d %d", &a, &b, &c);
  8.     printf("The numbers : %d %d %d",a,b,c);
  9.  
  10.     printf("\nEnter three numbers\n");
  11.     /*first value has 2digits, second value is skipped*/
  12.     scanf("%d %*d %d", &a, &b, &c);
  13.     printf("First three numbers : %d %d %d",a,b,c);
  14.  
  15.     printf("\nEnter nine digit number\n");
  16.     scanf("%3d %4d %3d", &a, &b, &c);
  17.     printf("Number is split into : %d %d %d",a,b,c);
  18.     return 0;
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top