Program 1- To Print "Welcome To Bit"

#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.


 

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.