12 lines
No EOL
240 B
C
12 lines
No EOL
240 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
int pol;
|
|
printf("Enter 3 number ");
|
|
scanf("%d", &pol);
|
|
int x1 = pol % 10;
|
|
int x2 = (pol / 10) % 10;
|
|
int x3 = ((pol / 10) / 10) % 10;
|
|
int sum = x1+x2+x3;
|
|
printf("%d\n", sum);
|
|
} |