Using Borland Turbo C Software we can compile, run and print any programmes. In turbo C programme there are several parts - library function which is called header, void main() function and body of the programme containing different functions, methods and variables.
Here is the example of a simple programme to print text......
INPUT
#include<stdio.h> /* using library function */
#include<conio.h> /* using library function to support printf( ) function */
void main() /* using void main( ) function */
{
clrscr(); /* to clear the screen */
printf("HELLO AMANDA!!!!"); /* To print the text */
getch(); /* To show output on the screen */
}
OUTPUT
HELLO AMANDA!!!!
Here is the example of a simple programme to print text......
INPUT
#include<stdio.h> /* using library function */
#include<conio.h> /* using library function to support printf( ) function */
void main() /* using void main( ) function */
{
clrscr(); /* to clear the screen */
printf("HELLO AMANDA!!!!"); /* To print the text */
getch(); /* To show output on the screen */
}
OUTPUT
HELLO AMANDA!!!!
how to make a program of multiplication table? by twos, fours and six only sir! thanks!
ReplyDelete