Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find sum of digits in C?

Answer Posted / nona

int n1, n2, sum;
Console.WriteLine("plz type the 1st number");
n1 = int .Parse (Console .ReadLine ());
Console.WriteLine("plz type the 2nd number");
n2 = int .Parse (Console .ReadLine ());
sum = n1 + n2;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between procedural and functional programming?

1009


Is it possible to have a function as a parameter in another function?

1038


How can you determine the maximum value that a numeric variable can hold?

1151


What do you mean by scope of a variable in c?

972


When is a void pointer used?

1192


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4241


Which is an example of a structural homology?

1246


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3636


Why isnt any of this standardized in c?

1020


What is assignment operator?

1000


What is a function in c?

1485


What are the storage classes in C?

1069


how to execute a program using if else condition and the output should enter number and the number is odd only...

2207


What kind of structure is a house?

994


What is modeling?

1001