Page not found
Search results
Symmetric matrix in C
C program to check if a matrix is symmetric or not: we find the transpose of ... original matrix. For a symmetric matrix A, A T = A. C program to check if a matrix is symmetric or not #include<stdio.h> ... int main ( ) { int m , n , c , d , matrix [ 10 ] [ 10 ] , transpose [ 10 ...
devyog - 03/12/2019 - 22:19
C++ hello world program
Hi! Are you searching for how to write a C++ hello world program? I hope I will be able to help you with that. Hello world C++ program #include <iostream> // Declaration of header using ...
devyog - 31/10/2019 - 20:47
C++ program to add two arrays
C++ program to add two arrays. C++ programming code #include<iostream> using namespace ... [ 20 ] , second [ 20 ] , sum [ 20 ] , c, n ; cout << "Enter the number of elements in the ...
devyog - 31/10/2019 - 20:16
Delay function in C
Delay in C: delay function is used to suspend execution of a program for a particular ... the "dos.h" header file which is not a part of standard C library. (adsbygoogle = window.adsbygoogle || []).push({}); Delay in C program If you don't wish to use delay function then you can use loops to ...
devyog - 29/09/2018 - 13:46
C program to delete an element from an array
C program to delete an element in an array: This program deletes or removes an ... || []).push({}); Remove element from array C program #include <stdio.h> int main ( ) { int array [ 100 ] , position , c , n ; printf ( "Enter number of elements in array \n ...
devyog - 11/10/2020 - 14:08
Insertion sort in C
Insertion sort in C: C program for insertion sort to sort numbers. This code implements insertion ... Insertion sort algorithm implementation in C /* Insertion sort ascending order */ #include <stdio.h> ...
devyog - 12/11/2019 - 14:29
sqrt in C
Function sqrt in C returns the square root of a number. To use it, include the "math.h" header ... Declaration: double sqrt(double); Square root in C using sqrt function #include <stdio.h> #include <math.h> ... to print two decimal digits. Output of program: C program to find square root of numbers from 1 to 100 #include ...
devyog - 04/11/2020 - 13:23
C program to insert an element in an array
C program to insert an element in an array, for example, consider an array ... = window.adsbygoogle || []).push({}); C program #include <stdio.h> int main ( ) { int array [ 100 ] , position , c , n , value ; printf ( "Enter number of elements in ...
devyog - 23/11/2019 - 11:40
C program to delete duplicate elements from an array
C program to delete duplicate elements from an array. For example, if an array ... element we get the following array: 1, 6, 2, 9. C program #include <stdio.h> int main ( ) { ... ] , b [ 100 ] , count = 0 , c , d ; printf ( "Enter number of elements in array \n " ...
devyog - 23/11/2019 - 11:40
C program to find nCr and nPr
C program to find nCr and nPr, remember, nCr = n!/(r!*(n-r)!) and nPr = n!/(n-r)!. C program to find nPr and nCr using a function #include <stdio.h> ... long factorial ( int n ) { int c ; long result = 1 ; for ( c = ...
devyog - 22/11/2019 - 19:42