Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » BeginnersRSS Feeds

Program that gives an example of scanf function

Posted By: Leon Evans     Category: C Programming     Views: 2054

Write a program that gives an example of scanf function.

Code for Program that gives an example of scanf function in C Programming

#include <stdio.h>
main()
{
int i = 0;
int k,j=10;
i=scanf("%d%d%d",&j,&k,&i);
printf("total values inputted %d\n",i);
printf("The input values %d %d\n",j,k);

}
  
Share: 


Didn't find what you were looking for? Find more on Program that gives an example of scanf function Or get search suggestion and latest updates.

Leon Evans
Leon Evans author of Program that gives an example of scanf function is from London, United Kingdom.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!