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 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); (MORE)

Clearing Up Whether or Not HTML Is a Programming Language

HTML, or "HyperText Markup Language," is often described as a programming language. Internet articles often categorize HTML with programming languages such as Python, Ruby and (MORE)

Easy to Use Digital Drawing Programs

Digital drawing software provides you with all the tools you need to draw, paint or create graphics. Here are some of the best digital drawing programs available.SketchBook Pr (MORE)

The Best Free Digital Photography Programs

Digital photography programs have made great advances in the past few years. It has gotten to the point where programs you download for free have so many features and tools th (MORE)

Dim Sum Carts in New York Restaurants

If you are in New York and have a craving for Chinese delicacies such as dim sum, is it possible to find a place in the busy city where authentic dim sums are traditionally se (MORE)

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} (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 (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 (MORE)

Write a program to find the sum of the digits and reverse of the digits using inheritance?

There is a far easier way to implement the required functionality than using inheritance. However, to answer the question, here's one possible solution that makes use of inher (MORE)