Page not found
Search results
pow function in C
... Declaration: double pow(double, double); Function pow in C language #include <stdio.h> #include <math.h> int main ( ) { double c , d , result ; printf ( "Enter c and d to calculate ...
devyog - 27/11/2019 - 18:54
setlinestyle in C
... DASHED_LINE , USERBIT_LINE } ; C program #include <graphics.h> int main ( ) { int gd = DETECT , gm , c , x = 100 , y = 50 ; initgraph ( & gd ...
devyog - 23/11/2019 - 11:40
sprintf in c
Sprintf in C : It's just like printf but output is sent to a string, rather than standard ... to string. Previous content of string are overwritten. C program #include<stdio.h> int main ( ) { ... 1 ; float b = 1.23 ; char c = 'u' , string [ 100 ] = "My initial character ...
devyog - 23/11/2019 - 11:40
Draw shapes using C graphics
This C graphics program draws basic shapes such as circle, line, rectangle, ellipse and display text on screen using C graphics. This can be a first graphics program for a beginner. C program #include<graphics.h> #include<conio.h> main ( ...
devyog - 23/11/2019 - 11:40
colors in C graphics
Following colors are available for use in C graphics programming. Colors table Color Value ... name as it will improve readability of program. C programming: graphics.h ...
devyog - 09/06/2018 - 20:50
gotoxy in C
gotoxy in C: gotoxy function places cursor at a desired location on screen i.e., we can ... y) is the position where we want to place the cursor. C programming code for gotoxy // Works in Turbo C compiler only #include <stdio.h> #include <conio.h> int ...
devyog - 10/10/2018 - 17:33
Captcha program in C
C program to generate a captcha which is a random string generated using an ... to check whether a human is operating a website. C captcha program #include <stdlib.h> #include <dos.h> ... ] ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; x = getmaxx ( ) / 2 ; ...
devyog - 23/11/2019 - 12:15
C program draw bar chart
C program to draw a bar chart using graphics. The chart is drawn using bars filled with different styles and colors. C program #include <graphics.h> #include <conio.h> int ... gm ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; setcolor ( YELLOW ) ; ...
devyog - 23/11/2019 - 11:40
Subtract matrices
C code to subtract matrices of any order. This program finds the difference ... of two matrices and then print the resultant matrix. C program #include <stdio.h> int main ( ) { int m , n , c , d , first [ 10 ] [ 10 ] , second [ 10 ] ...
devyog - 23/11/2019 - 11:40
C program to draw pie chart
This C program draws a pie chart showing percentage of various components drawn with different filling styles and colors. C program /* Program to draw a pie chart */ #include<graphics.h> ... ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; setcolor ( MAGENTA ) ; ...
devyog - 23/11/2019 - 11:40