You are here

Page not found

Search results

  1. Area of a triangle in C

    C program to find the area of a triangle using Heron's or Hero's formula. The ... The program assumes that a user will enter valid input. C program to find area of a triangle #include <stdio.h> #include ... int main ( ) {   double a , b , c , s , area ;   printf ( "Enter sides of a triangle \n ...

    devyog - 23/11/2019 - 11:40

  2. Selection sort in C

    Selection sort in C to sort numbers of an array in ascending order. With a little modification, ... || []).push({}); Selection sort program in C #include <stdio.h> int main ( ) {   int array [ 100 ] , n , c , d , position , t ;   printf ( "Enter number of ...

    devyog - 25/10/2020 - 14:26

  3. Print an int (integer) in C

    How to print an integer in C language? A user inputs an integer, and we print it. Input is done using ... and the number is printed on screen using printf. C program to print an int (integer) #include <stdio.h>   int ... Output of the program: C program to print first hundred positive integers [1, 100] using a for loop: ...

    devyog - 12/10/2020 - 22:40

  4. Remove vowels from a string in C

    C program to remove or delete vowels from a string. If the input is "C programming," then the output is "C prgrmmng." In the program, we create a new string and process input ...

    devyog - 11/10/2020 - 23:29

  5. C program to find HCF and LCM

    C program to find HCF and LCM: The code below finds the highest common factor ... || []).push({}); HCF of two numbers in C #include <stdio.h> int main ( ) {   int a ... HCF and LCM program. Output of program: C program to find hcf and lcm using recursion #include <stdio.h> ...

    devyog - 10/12/2019 - 20:50

  6. C program for pattern matching

    Pattern matching in C: C program to check if a string is present in an another string, for example, the string "programming" is present in the string "C programming". If it's present, then its location (i.e. at which position it's ...

    devyog - 01/12/2019 - 08:56

  7. C program to find the frequency of characters in a string

    C program to find the frequency of characters in a string: This program counts ... For example, in the string "code" each of the characters 'c,' 'd,' 'e,' and 'o' has occurred one time. Only lower case alphabets ... = window.adsbygoogle || []).push({}); C program #include <stdio.h> #include <string.h> int ...

    devyog - 23/11/2019 - 11:40

  8. Function overloading in C++

    ... known as compile-time polymorphism. Function overloading C++ program #include <iostream> using namespace std ; ... ( ) {   int a, b, x ;   float c, d, y ;   cout << "Enter two integers \n " ;   ...

    devyog - 31/10/2019 - 22:18

  9. C program to delete a file

    C program to delete a file whose name (with extension) a user will input. The ... the file, then it will be displayed by perror function. C file deletion program #include <stdio.h> int main ( ) ... overwritten on the storage medium by other data. C programming: C programs ...

    devyog - 23/11/2019 - 11:40

  10. C program to add, subtract, multiply and divide Complex Numbers, complex arithmetic

    C program to add, subtract, multiply and divide complex numbers. It is a menu ... = window.adsbygoogle || []).push({}); C program #include <stdio.h> #include <stdlib.h> struct ... x , y , z ;   struct complex a , b , c ;   while ( 1 )   {     printf ( ...

    devyog - 23/11/2019 - 11:40

Pages