#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("Welcome To Bit");
getch();
}
Output
Welcome To Bit
Explanation: #include<stdio.h> and #include<conio.h> is a header file and should be written in the same manner, beginning with #include and written in angular bracket "<" , ">". Here stdio.h defines printf to perform its function and conio.h defines a compiler inorder to translate C program to machine language program.
Exercise:
Write a program to print "Welcome To Bit" five times.
hint: just use printf("Welcome to Bit") for five times in the block of C program.
#include<conio.h>
void main()
{
clrscr();
printf("Welcome To Bit");
getch();
}
Output
Welcome To Bit
Explanation: #include<stdio.h> and #include<conio.h> is a header file and should be written in the same manner, beginning with #include and written in angular bracket "<" , ">". Here stdio.h defines printf to perform its function and conio.h defines a compiler inorder to translate C program to machine language program.
Exercise:
Write a program to print "Welcome To Bit" five times.
hint: just use printf("Welcome to Bit") for five times in the block of C program.
If you have any doubt, let me know...