Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Library
Videos
eBooks
Trending Catetories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
Android
Python
C Programming
C++
C#
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
Sudhir sharma
has Published
68
Answers
Add N digits to A such that it is divisible by B after each addition?
C++
Server Side Programming
Programming
sudhir sharma
Published on 16-Aug-2019 12:06:01
Given a, b and n. And we have to consider the following conditions and find the optimal solution to add n digits to a such that it is divisible by b after every iteration.Add a digit to a in such a way that after adding it, a is divisible by b.Print the smallest ...
Read More
Addition of two number using ‘-‘ operator?
C++
Server Side Programming
Programming
sudhir sharma
Published on 16-Aug-2019 11:39:38
Operator overloading is an important concept in C++. It is a type of polymorphism in which an operator is overloaded to give user-defined meaning to it. The overloaded operator is used to perform the operation on the user-defined data type. For example, '+' operator can be overloaded to perform addition ...
Read More
Arrays in C/C++?
C
C++
Server Side Programming
Programming
sudhir sharma
Published on 16-Aug-2019 11:36:40
The array is a sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.Instead of declaring individual variables, such as number0, number1, ...
Read More
Average numbers in array in C Programming
C
Server Side Programming
Programming
sudhir sharma
Published on 09-Aug-2019 16:52:00
There are n number of elements stored in an array and this program calculates the average of those numbers. Using different methods.Input - 1 2 3 4 5 6 7Output - 4Explanation - Sum of elements of array 1+2+3+4+5+6+7=28No of element in array=7Average=28/7=4There are two methodsMethod 1:IterativeIn this method we will find sum ...
Read More
Add minimum number to an array so that the sum becomes even in C programming
C
Server Side Programming
Programming
sudhir sharma
Published on 09-Aug-2019 16:46:22
Given an array, add the minimum number (which should be greater than 0) to the array so that the sum of array becomes even.Input - 1 2 3 4, Output - 2Explanation - Sum of array is 10, so we add minimum number 2 to make the sum even.Method 1: calculate the sum ...
Read More
Arithmetic Mean in C programming
C
Server Side Programming
Programming
sudhir sharma
Published on 09-Aug-2019 16:42:16
Arithmetic mean is the sum of a collection of numbers divided by the number of numbers in the collection.Basic properties of Arithmetic MeanThe mean of n numbers x1, x2, . . ., xn is x. If each observation is increased by p, the mean of the new observations is (x ...
Read More
C++ Program for Dijkstra’s shortest path algorithm?
C++
Server Side Programming
Programming
sudhir sharma
Published on 09-Aug-2019 16:31:17
Dijkstra's algorithm (or Dijkstra's Shortest Path First algorithm, SPF algorithm) is an algorithm for finding the shortest paths between nodes in a graph, which may represent, for example, road networks. The algorithm creates a tree of shortest paths from the starting vertex, the source, to all other points in the ...
Read More
C Program for Tower of Hanoi
C
Server Side Programming
Programming
sudhir sharma
Published on 09-Aug-2019 16:22:13
The tower of Hanoi is a mathematical puzzle. It consists of three rods and a number of disks of different sizes which can slide onto any rod. The puzzle starts with the disks in a neat stack in ascending order of size on one rod, the smallest at the top. ...
Read More
C/C++ Program for nth Catalan Number?
C
C++
Server Side Programming
Programming
sudhir sharma
Published on 09-Aug-2019 16:14:20
Catalan numbers are a sequence of numbers. Catalan numbers form a sequence of natural numbers that occur in various counting problems, often involving recursively-defined objects.Cn is the number of Dyck words of length 2n. A Dyck word is a string consisting of n X's and n Y's such that no ...
Read More
C Program to Multiply two Floating Point Numbers?
C
Server Side Programming
Programming
sudhir sharma
Published on 09-Aug-2019 16:11:31
Float is a shortened term for "floating-point." By definition, it's a fundamental data type built into the compiler that's used to define numeric values with floating decimal points. A floating-point type variable is a variable that can hold a real number, such as 4320.0, -3.33, or 0.01226. The floating part ...
Read More
1
2
3
4
5
6
7
Next
Advertisements