C++ Program to Convert Decimal to Any Base
C++ Program to Convert Decimal to Any Base Sometimes we need to convert decimal into binary , octal or hexadecimal. Now we don’t need to make separate program for each conversion. By using base...
View ArticleProgram to Print 1 to 100 without using Loop in C++
Program to Print 1 to 100 without using Loop in C++ Code : #include <iostream> using namespace std; template<int N> class PrintOneToN { public: static void print() {...
View ArticleFind the Sum of Digits of a Given Number
Find the Sum of Digits of a Given Number Code : # include<stdio.h> int main() { int n = 4567; printf("Sum of Number = %d ", Sum(n)); getch(); return 0; } int Sum(int n) { int s; for(s=0; n...
View ArticleProgram to Calculate Power of a Number in C
Program to Calculate Power of a Number in C Code : #include<stdio.h> main() { int num, p , result; printf("Enter the number : "); scanf("%d",&num); printf("nAnd its power also. : ");...
View ArticleVHDL Program for 4 to 1 MUX
VHDL Program for 4 to 1 MUX Using IF Statement 4 : 1 MUX Using IF Statement MUX very useful entity mostly use in VHDL. We can design 4:1 multiplexer using if statement. check following code may...
View ArticleImplementation of Round Robin Scheduling in C
Implementation of Round Robin Scheduling in C Programming Round Robin Technique is one of the scheduling algorithm for processes in an operating system. This algorithm give the CPU access to a...
View ArticleProgram to Print Reverse of a Number in C++
Program to Print Reverse of a Number in C++ Reverse Print of a number is simple in c++ we will use a function which perform reverse operation. For example inputted digit is 456 then output should be...
View ArticleProgram to Check Armstrong Number in Java
Program to Check Armstrong Number in Java Armstrong Number : A number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example 153 is an...
View ArticleC Program to Reverse the String Without using Strrev Function
C Program to Reverse the String Without using Strrev Function Here I’m sharing a code to print any inputted sting as reverse method. For Example if we input ABCDE then output should be EDCBA....
View ArticleFirst Fit , Best Fit and Worst Fit program in C++
First fit: The allocator places a process in the First block of unallocated memory in which it will fit. Best fit: The allocator places a process in the smallest block of unallocated memory in which...
View Article