Advertisement
Josif_tepe

Untitled

Nov 13th, 2022
633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 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.     int vtora_cifra = (N / 10) % 10;
  10.     int prva_cifra = N / 100;
  11.  
  12.     int proizvod = prva_cifra * vtora_cifra * treta_cifra;
  13.     printf("%d\n", proizvod);
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement