Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

C Exercise 64

C Exercise 64

100 Classic C Language Examples 100 Classic C Language Examples

**Problem:** Use ellipse and rectangle to draw graphics (implemented in TC).

**Analysis:** None.

Program source code:



//  Created by www.runoob.com on 15/11/9.

//  Copyright © 2015 Runoob Tutorial. All rights reserved.

//



#include "stdio.h"

#include "graphics.h"

#include "conio.h"

main()

{

    int driver=VGA,mode=VGAHI;

    int i,num=15,top=50;

    int left=20,right=50;

    initgraph(&driver,&mode,"");

    for(i=0;i

100 Classic C Language Examples 100 Classic C Language Examples