Introduction: Given a graph and a source vertex in graph, find shortest paths from source to all vertices in the given graph. Let's take a real life example:
In this program we'll learn How to convert a string into into corresponding integer value. Example: To convert string "1234" to its integer value 1234. #include <iostream> #include<string.h> #include<math.h>
Here you will know how to Check whether a number is an Armstrong number or not . In this method we have used a while loop to check for an Armstrong number.I have also attatched the screenshots of the programme I have written and the generated output.
In this post you will gonna learn how to calculate factorial of a number in C-programming. In this method we will print the factorial of a number using for loop.This is one of the simple method of calculating the factorial of a number.