#include<iostream.h>
#include<conio.h>
int main()
{
long unsigned int n,d,sum, i;
clrscr();
cout<<"Enter a number : ";
cin>>n;
abc :
sum = 0;
do
{
d = n % 10 ;
sum = sum + d;
n = n / 10;
}
while (n!=0);
if (sum > 9)
{
n = sum;
goto abc;
}
else
cout<<"The result is : "<< sum;
getch();
return 0;
}
Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement 
Corporate Services
  Web Design and development
  Web Promotion (SEO)
  Multimedia/CD Presentation
  Software development

  E.Commerce

Training@balujalabs

  Software Courses
  Hardware Courses
  Networking.Courses
  Mobile Repairing Courses
  UGC Degrees
Student Corner
 Programming & Projects
 Placement Papers
 Project Ideas
 Synopsis Ideas

  Franchise Section

 Administrator
Franchise Inquiry
 
 

To find sum of the digit of a number and reducing to one digit.

 

 

 

 

 

 

 


 



1
2 To find the largest of two numbers using if else statement.
3 To simulate the calculator to perform the following operation on two numbers.
4 To find the largest of three numbers and give the output in ascending order.
5 To simulate the calculator using switch statement.
6 To find the required month of the year using switch statement.
7 To find sum and average of ten different numbers using for loop.
8 To find sum and average of 10 different numbers using do-while loop.
9 To generate even series 1 to 50 using using while loop.
10 To find sum and average often different number using do-while loop.
11 To search for a number from 1 to 50.
12 To find sum of the digit of a number.
13 To find sum of the digit of a number and reducing to one digit.
14 To generate table of a number.
15 To display prime property of a number.
16 To find sum of even and odd numbers.
17 Program to fin factorial of a given numbers.
18 Program to generate the following series.

1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

19

Program to generate following series.

0

1 0 1

2 10 1 2

3 2 1 0 1 2 3

4 3 2 10 1 2 3 4

5 4 3 2 10 1 2 3 4 5

20

Program that estimator the value of the

E=1+1/1! + 1/2! +1/3!

 

21

.Program to find the following sum. Sum =x+x 2/2! +x 4 /4! - - - - -x 4/n!

22

Program to accept a date dd/ mm/ yyyy and check for the validity of the date.

23

Program to calculate and print roots of a quadratic equation given below:Ax 2+bx+c=0

24

Write a program that finds the smallest of several integers assume that the first valueRead specifies the number of values remaining

25

Demonstrate use of continue statement.

26 Program to generate Fibonacci series.
27 Program to convert a decimal number to binary number.
28 Program to swap two numbers without using third variable.



 


     
Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement