F. Digits Summation – Codeforces Problem Solution in C

Disclaimer: Make sure you tried enough before checking the solution

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

#include<stdio.h>
int main() {
   long long int a,b,sum;
   scanf("%lld%lld",&a,&b);
   sum = a%10 + b%10;
   printf("%lld",sum);
   return 0;
}

Leave a Comment