Y. The last 2 digits – Codeforces Problem Solution in C

Disclaimer: Make sure you tried enough before checking the solution

Problem: https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/Y

//https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/Y
//Last 2 digits of a number
#include<stdio.h>
int main() {
    unsigned long long int a,b,c,d;
    scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
    int e = (a*b*c*d)%100;
    printf("%lld",e);
    return 0;
}

Assiut University Training – Newcomers solution

Leave a Comment