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

C Exercise 63

C Exercise 63

100 Classic C Language Examples 100 Classic C Language Examples

**Problem:** Draw an ellipse with ellipse (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"

int main()

{

    int x=360,y=160,driver=VGA,mode=VGAHI;

    int num=20,i;

    int top,bottom;

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

    top=y-30;

    bottom=y-30;

    for(i=0;i

100 Classic C Language Examples 100 Classic C Language Examples