정올 1692 곱셈

1 개요[ | ]

정올 1692 곱셈

2 C[ | ]

#include<stdio.h>

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    int b100 = b/100;
    int b10 = (b%100)/10;
    int b1 = b % 10;
    printf("%d\n", a*b1);
    printf("%d\n", a*b10);
    printf("%d\n", a*b100);
    printf("%d\n", a*b);
}

3 C++[ | ]

#include <cstdio>

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    int b100 = b/100;
    int b10 = (b%100)/10;
    int b1 = b % 10;
    printf("%d\n", a*b1);
    printf("%d\n", a*b10);
    printf("%d\n", a*b100);
    printf("%d\n", a*b);
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}