You are here

Page not found

Search results

  1. C program to find maximum element in an array

    C program to find the maximum or the largest element present in an array. It ... Similarly, we can find minimum element in an array. C programming code #include <stdio.h>   int main ( ) { ... int array [ 100 ] , maximum , size , c , location = 1 ;   printf ( "Enter the number of ...

    yogesh - 06/01/2018 - 20:38

  2. Even or odd program in C

    C program to check odd or even: We will determine whether a number is odd or even by using different methods all are provided with a C language program. As you have studied in Mathematics that in decimal number ... where n is is an integer. Odd or even program in C using modulus operator #include <stdio.h>   int main ( ) ...

    yogesh - 01/01/2018 - 23:40

  3. Sum of n numbers in C

    Sum of n numbers in C: This program adds n numbers which will be entered by a user. The user will ... we can use an array or do it without using an array. C program to sum n numbers using for loop #include <stdio.h>   ... main ( ) { int n , sum = 0 , c , value ;   printf ( "Enter the number of integers you want ...

    yogesh - 05/01/2018 - 16:52

  4. C program to change case of a string

    ... characters which may be present in a string. strlwr in c #include <stdio.h> #include <string.h>   int main ( ) ... ) ;   return 0 ; } strupr in c #include <stdio.h> #include <string.h>   int main ( ) ...

    yogesh - 06/01/2018 - 19:08

  5. Factorial program in C

    Factorial program in C programming language: C program to find and print factorial of a number, three methods are given, the ... is defined as one i.e. 0! = 1. Factorial program in C using for loop Here we will find factorial using for loop. ...

    yogesh - 05/01/2018 - 16:26

  6. C program to compare two strings

    C program to compare two strings using strcmp function , without strcmp function and using pointers . String comparison C program #include <stdio.h> #include <string.h>   int main ... Compare Strings program. Output of program: C string comparison program We can create our own function to compare two ...

    yogesh - 06/01/2018 - 22:01

  7. Addition of two numbers in C

    Addition of two numbers in C: This C language program performs the basic arithmetic operation of addition of two ... + 6) will be printed on the screen. Addition program in C #include<stdio.h>   int main ( ) { int a , ...

    yogesh - 05/01/2018 - 16:01

  8. C program to print diamond pattern

    Diamond pattern in C language: This code prints diamond pattern of stars. The diamond shape is as follows: * *** ***** *** * C programming code #include <stdio.h>   int main ( ) { int n , c , k , space = 1 ;   printf ( "Enter number of ...

    yogesh - 06/01/2018 - 16:15

  9. 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 ... and equals the maximum value returned by rand function. C programming code using rand We use modulus operator in our program. If ...

    yogesh - 06/01/2018 - 20:18

  10. C string length program

    C string length program: This program prints length of a string, for example, consider the string "c programming" its length is 13. The null character is not counted when ... of a string, we can use strlen function of "string.h." C program to find length of a string without using strlen function String ...

    yogesh - 06/01/2018 - 18:38

Pages