Documente Academic
Documente Profesional
Documente Cultură
#include<stdio.h> Section 1
main() Section 3
{
printf(“welcome to C”);
}
4) CONSOLE INPUT-OUTPUT FUNCTIONS:
1) Formatted input-output Function
2) Unformatted input-output Function
Formatted I/O function :
This two functions are contain in stdio.h header file.
use those functions in our program we have to include stdio.h file
in our program, that is #include<stdio.h>
1) printf() :
Give the output in desired format to user.
use:
1) Display text as it is.
2) Display value of expression or value of variable.
e.x.:
printf(“WELCOME TO C LANGUAGE”);
2) scanf() :
It’s used to take input/data from user.
e.x.
scanf(“%d%d”,&num1,&num2);
Some format specifiers in c language
2)char (alphabet) : %c
4)string (text) : %s
Unformatted I/O Function: