Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
VKI_Mihalyk_3_2
#include <stdio.h> int main() { int N, sum = 0; scanf("%d", &N); do { sum += N % 10; N /= 10; } while (N != 0); printf("%d\n", sum); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Tree and binarySearch
Bucles: Múltiplos de 4 hasta N tecleado por el usuario
Bucles: Triángulo de asteriscos lateral izquierdo
Herout (67) - 11
Sin(x) in C Teylor
Herout (67) - 2+
C99 doesn't allow initializers in if-conditions, so this does not compile.
prog0
Find the length of largest subarray with equal number of 0's and 1's using recursion
Ashar
Please log in to post a comment.