Page not found
Search results
getche in C
... character and that character is printed on the screen. C code for getche #include<stdio.h> #include<conio.h> main ... ; return 0 ; } Run this program and press a character. Then view the user screen ( Alt + F5 ) if ...
devyog - 24/12/2017 - 18:14
textheight function in c
... pixels. Declaration: int textheight(char *string); C programming source code for textheight #include<graphics.h> ... ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; height = textheight ( "C ...
Guest (not verified) - 08/01/2018 - 20:55
Textwidth function in c
... in pixels. Declaration: int textwidth(char *string); C programming source code for textwidth #include <stdio.h> ... ] ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; width = textwidth ( "C ...
devyog - 08/01/2018 - 20:55
abs in C
... the absolute value of a number. abs function in C language #include <stdio.h> #include <math.h> int ... ; return 0 ; } Output of program: You can implement you own function as follows: long ...
devyog - 27/11/2019 - 18:45
sleep in C
Sleep function delays program execution for a given number of seconds. Declaration: void sleep(unsigned seconds); C programming code for sleep #include <stdio.h> #include <dos.h> ... ) ; return 0 ; } C programming: dos.h ...
devyog - 22/11/2019 - 20:22
Binary search in Java
Java program for binary search: This code implements the binary search algorithm. ... ( String args [ ] ) { int c, first, last, middle, n, search, array [ ] ; Scanner in ... + " integers" ) ; for ( c = 0 ; c < n ; c ++ ) array [ c ] = ...
devyog - 05/12/2019 - 09:11
Armstrong number in Java
Java program to check if a number is Armstrong or not, it is a number that is equal ... power ( int n, int r ) { int c, p = 1 ; for ( c = 1 ; c <= r ; c ++ ) p = p * n ; ...
devyog - 05/12/2019 - 00:30
How to take input from a user in Java
Java program to get input from a user, we are using Scanner class for it. The program asks the user to enter an integer, a floating-point number, and a ... in "java.util" package, so we import this package into our program. We create an object of the class to use its methods. Consider the ...
devyog - 01/12/2019 - 08:56
getpixel and putpixel functions in C
... plots a pixel at a point(x, y) of the specified color. C programming code for getpixel and putpixel #include<graphics.h> ... ] ; initgraph ( & gd ,& gm , "C: \\ TC \\ BGI" ) ; putpixel ( x , y , RED ) ...
devyog - 22/11/2019 - 20:43
lineto function in C
... can get current position using getx and gety function. C programming code for lineto #include <graphics.h> #include ... gm ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; moveto ( 100 , 100 ) ...
devyog - 22/11/2019 - 20:16