printf() is the basic function in C language. We always use it to show the output. It is used in almost all the codes we write...Here is the example:
printf("My Name is Muzammil");
The above code displays the string My na.....Muzammil.
Lets write a sample code which will display the names of days in a week.
#include<stdio.h>
#include<conio.h>
void main()
{
printf("Monday");
printf("\nTuesday");
printf("\nWednesday");
printf("\nThursday");
printf("\nFriday");
printf("\nSaturday");
printf("\nSunday");
getch();
}
What is this?
printf("My Name is Muzammil");
The above code displays the string My na.....Muzammil.
Lets write a sample code which will display the names of days in a week.
#include<stdio.h>
#include<conio.h>
void main()
{
printf("Monday");
printf("\nTuesday");
printf("\nWednesday");
printf("\nThursday");
printf("\nFriday");
printf("\nSaturday");
printf("\nSunday");
getch();
}
What is this?
0 comments:
Post a Comment