Page not found
Search results
textcolor in C
... textcolor is used to change the color of drawing text in C programs Turbo C compiler only . Declaration: void textcolor(int color); where color ...
devyog - 03/10/2018 - 17:42
Sum of n natural numbers in C
C program to find the sum of n natural numbers using the formula and a for ... Sum of first n natural numbers = n*(n+1)/2. C program to find sum of n natural numbers #include <stdio.h> ... } Output: Sum of n natural numbers in C using a for loop #include <stdio.h> int main ( ) ...
devyog - 04/11/2020 - 14:18
C program to implement stack data structure
Stack program in C: C program to implement stack using array. C program #include <stdio.h> #include <stdlib.h> int ...
devyog - 23/11/2019 - 11:40
C++ program to add two complex numbers
C++ program to add two complex numbers. C++ programming code #include <iostream> using namespace ... ; int main ( ) { complex a, b, c ; cout << "Enter a and b where a + ib is the first ...
devyog - 13/07/2018 - 12:29
C++ new operator example
C++ new operator example: C++ code using "new" operator to allocate memory on heap dynamically. C++ programming code #include <iostream> using ...
devyog - 11/12/2019 - 11:11
C program to find maximum element in a matrix
C program to find the largest or the maximum element in a matrix. C program #include <stdio.h> int main ( ) { int m , n , c , d , matrix [ 100 ] [ 100 ] , maximum ; ...
devyog - 03/12/2019 - 22:15
C program to reverse words in a string
C program to reverse words in a string or sentence, for example, if the input string is "c++ programming language" then the output will be "++c gnimmargorp egaugnal" i.e. we will invert each word occurring in the input ...
devyog - 23/11/2019 - 11:40
C program to insert substring into a string
C program to insert a substring into a string: This code inserts a string into the source string. For example,if the source string is "C programming" and string to insert is " is amazing" (please note there is ... we insert string at position 14 then we obtain the string "C programming is amazing". In our C program we will make a function which ...
devyog - 23/11/2019 - 11:40
String concatenation in C
C program to concatenate two strings; for example, if the two input strings are "C programming" and " language" (note the space before language), then the output will be "C programming language." To concatenate the strings, we use the strcat ...
devyog - 04/10/2020 - 11:26
Matrix multiplication in C
Matrix multiplication in C language to calculate the product of two matrices (two-dimensional arrays). A ... || []).push({}); Matrix multiplication in C language #include <stdio.h> int main ( ) { int m , n , p , q , c , d , k , sum = 0 ; int first [ 10 ] [ ...
devyog - 12/12/2019 - 00:47