Use of scanf and printf function


             SCANF AND PRINTF FUNCTION 

Hi everyone

This is the second blog of mine on c programming language. Today I am going to talk about this scanf function it is used to take input from user and stores the values to variable. In scanf we have to use format  specifies like for

       integer   %d
       Float       %f
       Char        %c



These are the format specifies for datatypes. These are fundamental dataType  which are used in c programming language. On datatypes I will make another blog so stay tuned for it.

Let's see our program to which takes  input from user and shows the output.

#include<stdio.h>
main()
{
int i;
scanf("%d",&i);
printf("The value of I is :%d",i);
}


I will give 5 as input.
Output:
The value of I is :5


Thanks for watching this blog.stay tuned for next blog.

                                                 made by jaybhatt.

Comments