Advertisement
Josif_tepe

Untitled

Nov 13th, 2022
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main() {
  5.     int N;
  6.     scanf("%d", &N);
  7.    
  8.     int treta_cifra = N % 10;
  9.     N /= 10;
  10.     int vtora_cifra = N % 10;
  11.     N /= 10;
  12.     int prva_cifra = N % 10;
  13.  
  14.     int proizvod = prva_cifra * vtora_cifra * treta_cifra;
  15.     printf("%d\n", proizvod);
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement