i make that program but this program is giving an error please debug the error

#include <conio.h>
#include <stdio.h>

int main()
    int i;
    printf("This is the first line.\n");
    printf("This is the second line.\n");
    printf("And this is line 3.\n");

    return 0;



Edited 3 Years Ago by mike_2000_17: Fixed formatting

This is one of the problems with learning to program with an ancient compiler such as Turbo C -- you don't know the difference between compiler-specific functions and standard C.

gotoxy is not a standard C function, so you need other library for that.

can you tell me which library

dear can u make a complete program because still i cant understand please

Read the tutorial in the last link he posted. If you can't understand that then you have no business attempting to write complicated programs; get yourself an Introduction to C++ programming book and start studying from page 1, not the back of the book.

This article has been dead for over six months. Start a new discussion instead.