Program Number (01)
#Write a simple
program printing “DIU” in C
Solution:-
#include <stdio.h>
void main()
{
printf("Welcome To DIU!");
}
# Output:
Welcome To DIU
Explanation:
# include <stdio.h>
include <stdio.h> here htudio.h is a header file which
contains function definitions for all input output functions like printf,
scanf, getc, gets, getchar etc which are been called by the programmer in the
program for accepting and displaying input and output.
# main ()
main() is the special function in C from where execution of
a program starts and ends.
# prinft()
In C programming, printf() is one of the main output
function. The function sends formatted output to the screen.
Comments
Post a Comment