Page not found
Search results
Java methods
Java methods tutorial: Java program consists of one or more classes, and a class may contain ... tutorial, we learn about Java methods (known as functions in C and C++ programming languages). A method has a name and return type. The main ...
devyog - 04/12/2019 - 19:51
Sum of n numbers in C
Sum of n numbers in C: This program adds n numbers that a user inputs. The user enters a number ... = window.adsbygoogle || []).push({}); C program to find sum of n numbers using a for loop #include <stdio.h> ... ( ) { int n , sum = 0 , c , value ; printf ( "How many numbers you want to add? ...
devyog - 10/12/2019 - 23:42
String copy in C
C program to copy a string using library function strcpy and without using strcpy . String copy C program #include <stdio.h> #include <string.h> int ... Output of program: Copy string in C without using strcpy #include <stdio.h> int main ( ) ...
devyog - 18/11/2019 - 19:00
C program to print a string
C program to print a string using various functions such as printf, puts. ... char z [ 100 ] = "I am learning C programming language." ; printf ( "%s" , z ) ; ... return 0 ; } Output: I am learning C programming language. (adsbygoogle = ...
devyog - 14/10/2020 - 21:18
Bitwise operators in C
Bitwise operators in C programming language: In this tutorial I am going to discuss bitwise operators with example C programs. As you know data is stored in memory in the form of bits and a bit ...
devyog - 23/11/2019 - 11:40
Factorial program in C
Factorial program in C using a for loop, using recursion and by creating a function . ... || []).push({}); Factorial in C using a for loop #include <stdio.h> int main ( ) { int c , n , f = 1 ; printf ( "Enter a number to ...
devyog - 11/10/2020 - 00:24
String compare in C
How to compare strings in C? You can use do it using strcmp function , without strcmp function and ... = window.adsbygoogle || []).push({}); C compare strings #include <stdio.h> #include <string.h> ... program: Download Compare Strings program. C string comparison program We can create a function to compare two ...
devyog - 05/12/2019 - 08:50
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
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
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