Page not found
Search results
C program to find roots of a quadratic equation
C program to find roots of a quadratic equation: Coefficients of the equation ... (imaginary). For a quadratic equation ax 2 + bx + c = 0 (a≠0), discriminant (b 2 -4ac) decides the nature of roots. If it's ... the sum of its roots = -b/a and the product of its roots = c/a. Let's look at the program now. ...
devyog - 16/02/2025 - 16:44
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 main ( ) { char source [ 1000 ] , destination [ 1000 ] ; ...
devyog - 18/11/2019 - 19:00
Java programs
... the class file and execute it directly without compiling the source file. (adsbygoogle = ... ] arguments ) { & # 13 ; int c ; //declaring a variable & # 13 ; /* Using a ...
devyog - 31/05/2024 - 09:46
Pattern programs in C
Pattern programs in C language, showing how to create various patterns of numbers and stars. The ... inputs the numbers of rows to print. Pattern program in C #include <stdio.h> int main ( ) { int ... For more patterns or shapes on numbers and characters see codes on following pages: Floyd triangle Pascal triangle ...
devyog - 02/10/2020 - 00:19
Palindrome in C
C program to check if a string or a number is palindrome or not . A ... then the string is a palindrome otherwise not. C program to check palindrome without using string functions . Some ... copy_string ( char * target , char * source ) { while ( * source ) { ...
devyog - 14/10/2020 - 19:48
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. ... tool to create programs, if you wish to look at some example codes then see C programming examples . How to compile and run your ...
devyog - 10/12/2019 - 20:37
Sum of digits in C
... gives the remainder 2 (the sum of a digit of the number 2). C language has an operator '%' (don't confuse it with the percentage symbol of ... (add it to the variable sumOfDigits). The sum of digits C program to calculate the sum of digits of a number, we use the modulus ...
devyog - 25/05/2024 - 08:58
C program to copy a file
C program to copy a file: This program copies a file, firstly you will specify ... to copy in "read" mode and target file in "write" mode. C program #include <stdio.h> #include <stdlib.h> int main ( ) { char ch , source_file [ 20 ] , target_file [ 20 ] ; FILE ...
devyog - 23/11/2019 - 11:40
C program to count number of vowels in a string
C program to count number of vowels in a string: for example, in the string ... || []).push({}); Count vowels in a string in C #include <stdio.h> int main ( ) { int c = 0 , count = 0 ; char s [ 1000 ] ; ...
devyog - 26/05/2024 - 13:55
C Game Programming Tutorial
C game programming tutorial is for all those who wish to make their games or ... mouse button is clicked etc. Here you will find sample source code and programs, you can also download executable files so you can ... action according to the key pressed. Sample source codes and executable files are also available. Know you know how to make a ...
devyog - 28/07/2019 - 20:54