3.4 Input Output Function in C Programming

Input & Output Function

C programming language provides many of the built-in functions to read given input and write data on screen, printer or in any file.
 
scanf() and printf() functions

#include<stdio.h>
#include<conio.h>
void main ( )
{
int i;
printf(" Enter a value " );
scanf ("%d",& i);
printf("\nYou entered : %d", i );
getch ( )
}

No comments:

Post a Comment