answersLogoWhite

0


Best Answer

#include <stdio.h>

void main()

{

int digi,num,i,sum=0;

printf("Enter the number of digits:");

scanf("%d",&num);

while(i>0);

{

for(i=0;i<10000;i++)

{

digi=num;

i=digi%10;

sum=sum+i;

num=digi/10;

}

printf("The sum of digits entered is %d",sum);

}

}

User Avatar

Wiki User

โˆ™ 2010-09-22 05:49:28
This answer is:
User Avatar
Study guides

What is a programming language

What does DOS stand for

What is a software that is distributed for free

What is application software

โžก๏ธ
See all cards
3.78
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
32 Reviews

Add your answer:

Earn +20 pts
Q: What is the C program to check whether a given binary tree is binary search tree or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

C program to check whether a given number is binary or not?

1010101


Write a c program to check whether a number is binary or not?

#include&lt;stdio.h&gt; void main() { int n; clrscr(); printf("enter a no."); scanf("%d",&amp;n); if(n%10==0n%10==1) printf("yes binary"); else printf("not binary"); getch(); } }


Write a C program that takes a binary file as input and finds error check using different mechanisms?

write a c program that takes a binary file as input and finds error check using different mechanisms.


How to find height of subtree in a Binary tree?

Check this out! http://stackoverflow.com/questions/575772/the-best-way-to-calculate-the-height-in-a-binary-search-tree-balancing-an-avl


What is a Desk check trace table?

Going through a program on paper to check whether it has errors.


Write a program By using if else statement to read a number and check whether it is positive or negative?

write a c++program by using if statement to read a number and check whether it is positive or negative


Write a program to enter a number and check whether number is divisible by 7 or not?

wap to input a number and check whether it is divisible by 7 or no


Write a program that takes a binary file as input and finds error check using different mechanism?

networking


How do you write a c program to find out whether the given input string is an identifier or not?

In order to achieve this you will need to provide a set of known identifiers to check against. These can be stored in an array of pointers to null-terminated strings, but the array needs to be in sorted order to take advantage of binary search. Ideally, the array itself should be null-terminated.


Where can you buy a 1993 Phillies program?

You will commonly find Phillies Programs on eBay. Do a search for "1993 Phillies program scorecard", and save the search. check back on a regular basis until you find the program you are looking for.


Write a program to check whether the number is divisible by 3?

maa ki aank


What does check digit mean in binary?

A check digit can be added to any set of numbers primarily to check for errors in the data. The check digit is seen as an equivalent to binary checksum which is used for the older and now less used binary system.

People also asked