Page not found
Search results
Leap year program in C
Leap year program in C to check if a year is a leap year or not, a leap year is one that has 366 ... || []).push({}); Leap year C program #include <stdio.h> int main ( ) { ...
Yogesh Suneja - 02/10/2020 - 00:25
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 ...
Yogesh Suneja - 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 ( ...
Yogesh Suneja - 23/11/2019 - 11:40
Print numbers without using loops
C program to print first n natural numbers without using any loop (do-while, ... i.e., without creating any function other than main. C program using recursion #include <stdio.h> void print ( ... without loop program. Output of program: C program using goto #include <stdio.h> int main ( ) ...
Yogesh Suneja - 09/10/2020 - 22:48
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 ...
Yogesh Suneja - 09/06/2018 - 20:50
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 ) ; ...
Yogesh Suneja - 23/11/2019 - 11:40
C countdown program
C graphics program which performs countdown for 30 seconds. C program #include <graphics.h> #include <dos.h> #include ... ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; settextjustify ( CENTER_TEXT , ...
Yogesh Suneja - 23/11/2019 - 11:40
Press me button game in c, download press-me-button game
Press me game in C:- In this game when you try to bring mouse near a button it moves away from ... very close to button we move the button suitably. C program #include <stdio.h> #include <conio.h> #include ... , error ; initgraph ( & gd ,& gm , "C: \\ TC \\ BGI" ) ; error = graphresult ( ) ; ...
Yogesh Suneja - 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> ... ( midx + 100 , midy - 75 , "20.83%" ) ; setfillstyle ( XHATCH_FILL , RED ) ; ...
Yogesh Suneja - 23/11/2019 - 11:40
C program to move a car
Program in C using graphics to move a car. A car is made using two rectangles and two ... = window.adsbygoogle || []).push({}); C program #include <graphics.h> #include <dos.h> #include ... , gm ; initgraph ( & gd ,& gm , "C: \\ TC \\ BGI" ) ; settextstyle ( DEFAULT_FONT , ...
Yogesh Suneja - 23/11/2019 - 11:40