Code Master is a windows software, which is your one-step solution to learn all the top programming codes - anywhere, anytime!
Created using research, Code Master offers a perfect path to learn
programming. You will not only acquire new skills, but also enjoy it
like a game. It's easy, it's fast and it's fun!
With a huge collection of programs(code examples) for practice, all your programming needs are
bundled in a single app for your daily practice.
What all programming languages you can learn?
C Programming: C programming is a powerful general-purpose
language.If you are new to programming then C Programming is the best
language to start your programming journey.In practical C programming is
used in Embedded stuff, Systems programming.
C++: C++ is used nearly everywhere for everything from systems
programming,numerical and scientific computing,web development,writing
compilers, console games, desktop applications and so on.
Visual Basic 6.0:
Shell Programming: Coming soon...
Java:
What features do we have?
EXAMPLES: over 3300+ programs in 4 languages and counting, Code Master has one of the largest collection of pre-compiled
programs with output for practice and learning. We update the program
repository regularly based on user's feedback.
COURSES: We provide online course. To make your learning more interesting and less boring,
our experts have created bite-sized and interactive courses which will
help you learn programming in a better way. It's the best place to
understand concepts and start coding using the compiler.
Other Features to improve your learning experience includes:
Concept based illustrations.
Interactive learning experience.
Quick Search for programs.
Categorized View for programs.
No Harmful Permissions required.
Periodic Updates with new programming examples and course content.
PTubeBlog,
a very popular Browser of Program Tube Website, has been upgraded with all new Programs, Knowledges, Treicks, Great user experiences, etc with related videos. We also provides Youtube channel named as Program Tube.
The factorial of a negative number doesn't exist. And the factorial of 0 is 1.
You will learn to find the factorial of a number using recursion in this example. Visit this page to learn, how you can find the factorial of a number using loop.
Example: Factorial of a Number Using Recursion
#include<stdio.h>longint multiplyNumbers(int n);int main(){int n;
printf("Enter a positive integer: ");
scanf("%d",&n);
printf("Factorial of %d = %ld", n, multiplyNumbers(n));return0;}longint multiplyNumbers(int n){if(n >=1)return n*multiplyNumbers(n-1);elsereturn1;}
Output
Enter a positive integer: 6
Factorial of 6 = 720
Suppose the user entered 6.
Initially, the multiplyNumbers() is called from the main() function with 6 passed as an argument.
Then, 5 is passed to themultiplyNumbers() function from the same function (recursive call). In each recursive call, the value of argumentn is decreased by 1.
When the value of n is less than 1, there is no recursive call.