Online Courses
Free Tutorials  Go to Your University  Placement Preparation 
0 like 0 dislike
2.5k views
in AKTU/UPTU B.tech (CSE-VI Sem) COMPUTER GRAPHICS LAB by Goeduhub's Expert (7.6k points)
Program to draw Smiley face in C

Goeduhub's Top Online Courses @Udemy

For Indian Students- INR 360/- || For International Students- $9.99/-

S.No.

Course Name

 Coupon

1.

Tensorflow 2 & Keras:Deep Learning & Artificial Intelligence || Labeled as Highest Rated Course by Udemy

Apply Coupon

2.

Complete Machine Learning & Data Science with Python| ML A-Z Apply Coupon

3.

Complete Python Programming from scratch | Python Projects Apply Coupon
    More Courses

1 Answer

0 like 0 dislike
by Goeduhub's Expert (7.6k points)
 
Best answer

Program to draw Smiley face in C

Program

#include <graphics.h>

#include <conio.h>

int main()

{

int graphicdriver=DETECT,graphicmode;

initgraph(&graphicdriver,&graphicmode,"c:\\turboc3\\bgi");

setcolor(YELLOW);

circle(300, 100, 40);

setfillstyle(SOLID_FILL, YELLOW);

floodfill(300, 100, YELLOW);

setcolor(BLACK);

setfillstyle(SOLID_FILL, BLACK);

fillellipse(310, 85, 2, 6);

fillellipse(290, 85, 2, 6);

ellipse(300, 100, 205, 335, 20, 9);

ellipse(300, 100, 205, 335, 20, 10);

ellipse(300, 100, 205, 335, 20, 11);

getch();

return 0;

}

Output

8img


For more AKTU/UPTU CSE-VI Sem Computer Graphics Lab Experiments Click here


 

3.3k questions

7.1k answers

394 comments

4.6k users

 Goeduhub:

About Us | Contact Us || Terms & Conditions | Privacy Policy || Youtube Channel || Telegram Channel © goeduhub.com Social::   |  | 
...