Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char** argv) {
  4.  
  5. int a;
  6.  
  7. scanf("%d", &a);
  8.  
  9. int b=a/100;
  10.  
  11. int c=(a/10)%10;
  12.  
  13. int d=a%10;
  14.  
  15. int k=c*b*d;
  16.  
  17. printf ("%d %d", k, d);
  18.  
  19. // if (0<a && a<4) {
  20. // printf ("Initial");
  21. //} else if (3<a && a<7) {
  22. // printf ("Average");
  23. //} else if (6<a && a<10) {
  24. // printf ("Sufficient");
  25. //} else if (a>9 && a<13) {
  26. // printf ("SEXY");
  27. //}
  28.  
  29. // if (a>10 && (a % 2) == 0) {
  30. // printf("Dogrudur");
  31. // } else {
  32. // printf("Dogru deyil");
  33. // }
  34.  
  35.  
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement