Untitled
plain_text
a month ago
627 B
17
Indexable
Never
#include <stdio.h> int main() { int n,rem,new1=0,count=0,tried=0; scanf("%d",&n); int k=n; while (k) { rem=k%10; new1=new1+rem; k/=10; } printf("Sum of digits : %d ",new1); int s=n; while (s) { s/=10; count++; } printf("Mean : %d ",(new1/count)); while (n) { rem=n%10; if (rem%2==0) { tried++; } n/=10; /// SIR AMI MONE HOI EITA LIKHTE BHULE GESI TARAHURAR MODDHE :) } printf("Number of even digit: %d ",tried); return 0; }