Page not found
Search results
Palindrome in Java
Java program to check if a string is a palindrome or not, it's a palindrome if it ... "dad" is a palindrome, as its reverse is "dad," whereas "program" isn't, as its reverse is "margorp" that is different from "program." Some palindrome strings examples are: "j", "mom", "madam", ...
devyog - 12/10/2020 - 22:21
Sum of n natural numbers in C
C program to find the sum of n natural numbers using the formula and a for ... Sum of first n natural numbers = n*(n+1)/2. C program to find sum of n natural numbers #include <stdio.h> ...
devyog - 04/11/2020 - 14:18
Factorial program in Java
Java program to find factorial of a number, if the number is negative, then an error ... String args [ ] ) { int n, c, f = 1 ; System . out . println ( "Enter an ... ; else { for ( c = 1 ; c <= n ; c ++ ) f = f * c ...
devyog - 05/12/2019 - 00:13
C programming
To quickly learn C language you must start writing programs in it. To do so you need a text editor and a compiler to translate a source program into machine code that can be executed directly on a machine. Dev C++ IDE is a good choice, so if you are not having it installed on your ...
devyog - 10/12/2019 - 20:37
Transpose of a matrix in C
Transpose of a matrix in C language: This C program prints transpose of a matrix. To obtain it, we interchange rows and ...
devyog - 13/12/2019 - 20:54
Palindrome number in C
... If both are the same, it's a palindrome otherwise not. C palindrome string program . (adsbygoogle = window.adsbygoogle ...
devyog - 09/10/2020 - 23:18
Area of a circle in C
C program to find the area of a circle: C programming code to calculate the area of a circle. In the program, we use ...
devyog - 04/11/2020 - 13:21
Conditional compilation in C programming language
Conditional compilation in C programming language: Conditional compilation as the name implies that the ... the following code to quickly understand the scenario: C program #include <stdio.h> #define x 10 int ...
devyog - 23/11/2019 - 11:40
Java program to print alphabets
Java program to print letters (i.e., a, b, c, ..., z in lower case) on the screen ... shows only the body of the main method): char c = 'a' ; while ( c <= 'z' ) { ...
devyog - 04/12/2019 - 09:16
Even odd program in Java
Java program to check whether a number is even or odd; if it's divisible by two, ... Another method to check odd or even, for explanation see: C program to check odd or even . Code: import java.util.Scanner ... ( String args [ ] ) { int c ; System . out . println ( "Input an integer" ) ...
devyog - 25/10/2020 - 23:04