Python programming language object oriented web free open source software license documentation download community
#include<stdio.h>int main(){ int num,count=0; printf("Enter a number: "); scanf("%d",&num); while(num){ num=num/10; count++; } printf("Total digits is: %d",count); return 0; }
Output:Enter a number:432Total digits is:3
ليست هناك تعليقات:
إرسال تعليق