Program in c language to find the sum of digits?

Program in c language to find the sum of digits?
#include <stdio.h>
void main()
int digi,num,i,sum=0;

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

printf("The sum of digits entered is %d",sum);
7 people found this useful
Thanks for the feedback!

C program to find sum of all elements of a matrix?

/* @Autor: MD moniruzzaman */ #include<stdio.h> #define maxn 5 int matrix[maxn][maxn] = { {1,2,3,3,4},{2,3,4,1,2},{ 4,5,6,7,8},{3,4, (MORE)

C program to find sum of n numbers?

include<stdio.h>#include<conio.h>main(){ int num, n,sum=0,i=0; printf("enter the number of elements to be added "); scanf("%d",&n); printf("enter %d numbers",n (MORE)

C program to find the sum of the digits of a number?

Here You go........... # include<stdio.h># include<conio.h>void main(){int no,sum=0,rem=0;clrscr();printf("\\nEnter a Number: ");scanf("%d",&no);while(no>0) (MORE)

Free and Easy Online Spreadsheet Programs

There are a number of reasons you might need to create a spreadsheet, be it for business or for pleasure. Many office programs are quite expensive, so it pays to have a low-co (MORE)

Free Graphics Programs Online

The tools used in graphic design can be a costly investment, particularly if the user is not working as a professional in the field of digital arts. There are many individuals (MORE)

User Reviews for the Clean Program

One of the newest diet crazes is the Clean Program created by Dr. Alejandro Junger. This restorative detox diet lasts 21 days and consists of two meals of "Clean" shakes, one (MORE)

A Directory List for Programs

One of the most important pieces of information that you need to provide during the installation of any program is the directory in which this program will be installed. Witho (MORE)

Java program to find the sum of digit of a number and reverse it?

public SumRevInt(String args) { System.out.println("in constr"); if(args == null) { System.out.println("hello, enter a choice during execution"); } else { char[] ch = (MORE)

C program to find sum of two sparse matrices?

 #include <stdio.h>  #include <stdlib.h>    typedef struct node  {  int column;  int value;  (MORE)

C program to find sum of digits of a number using function?

#include<stdio.h> #include<conio.h> void main() { int sumdig(int); int n,sum,d,f,rev=0; clrscr(); printf("enter the number"); scanf("%d",&n); sum=sumd (MORE)