Technology has advanced to the point where programming has become an essential part of our lives. We use software and applications for communication, entertainment, education, and work, and these are all built on programming languages.

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.


 
Share:

No comments:

Post a Comment

If you have any doubt, let me know...

Translate

Wikipedia

Search results