Submission

Status:

P------P--

Subtask/Task Score:

20/100

Score: 20

User: lingusso

Problemset: เลขหลักของผลคูณ

Language: c

Time: 0.002 second

Submitted On: 2025-10-12 15:26:09

#include<stdio.h>
#include<string.h>

int main(){
	int a,b,x,r=0;
	scanf("%d",&a);
	scanf("%d",&b);
	scanf("%d",&x);
	a *= b;
	int n[40];
	int row =a;
	while(row > 0){
		n[r] = row % 10;
		row /= 10;
		r++;
	}
	printf("%d",n[x-1]);
	return 0;
}