You are here

Page not found

Search results

  1. Bubble sort in C

    Bubble sort in C to arrange numbers in ascending order; you can modify it for descending order ... || []).push({}); Bubble sort program in C /* Bubble sort code */ #include <stdio.h> int main ... ) {   int array [ 100 ] , n , c , d , swap ;   printf ( "Enter number of elements \n ...

    devyog - 14/10/2020 - 21:14

  2. C program to print diamond pattern

    The diamond pattern in C language: This code prints a diamond pattern of stars. The diamond shape is ... || []).push({}); Diamond pattern program in C #include <stdio.h> int main ( ) {   int n , c , k ;   printf ( "Enter number of rows \n " ) ; ...

    devyog - 26/11/2019 - 22:50

  3. C program to generate random numbers

    C program to generate pseudo-random numbers using rand and random function (Turbo C compiler only). As the random numbers are generated by an algorithm used in a ... = window.adsbygoogle || []).push({}); C programming code using rand We use modulus operator in our program. If ...

    devyog - 29/09/2018 - 15:28

  4. clrscr in C

    Function "clrscr" (works in Turbo C++ compiler only) clears the screen and moves the cursor to the upper ... use system function to execute the clear/cls command. C programming code for clrscr #include<stdio.h> ... will be printed. Function clrscr doesn't work in Dev C++ compiler. Use the cleardevice function instead of clrscr in graphics ...

    devyog - 05/12/2019 - 23:07

  5. Armstrong number in C

    Armstrong number C program to check whether a number is an Armstrong number or not, it's a ... then the number is an Armstrong number otherwise not. C program to print Armstrong numbers ... + 1 + 823543 +128 + 78125) Armstrong number program in C #include <stdio.h> int power ( int , int ) ...

    devyog - 12/12/2019 - 21:06

  6. 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 ... 100 ] ;         printf ( "Enter source string \n " ) ;     gets ( original ) ;   ...

    devyog - 04/10/2020 - 11:26

  7. C program to sort a string in alphabetic order

    C program to sort a string in alphabetic order: For example, if a user inputs a ... = window.adsbygoogle || []).push({}); C program #include <stdio.h> #include <stdlib.h> #include ... int no [ 26 ] = { 0 } , n , c , t , x ;   printf ( "Enter some text \n " ) ; ...

    devyog - 23/11/2019 - 11:40

  8. putimage function in c

    ... at (left, top). ptr points to the area in memory where the source image is stored. The op argument specifies a operator that controls how ... based on pixel already on screen and the corresponding source pixel in memory. Smiling face animation program using putimage. ...

    devyog - 28/12/2017 - 21:34

  9. Fibonacci series in C

    Fibonacci series in C using a loop and recursion . You can print as many terms of the series as ... || []).push({}); Fibonacci series program in C #include <stdio.h> int main ( ) {   int ... , first = 0 , second = 1 , next , c ;   printf ( "Enter the number of terms \n " ) ; ...

    devyog - 25/10/2020 - 23:45

  10. 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

Pages