You are here:   HomeC Programming (Theory)Basic Of C Prog.Write a C program to read int value from console
by Dinesh Thakur Category: Basic Of C Programming

 

 

#include<stdio.h>

#include<conio.h>
void main()
{
int i = 0;
int k,j=10;
clrscr();
i=scanf("%d%d%d”, &j ,&k,&i);
printf("total values inputted %d\n" ,i);
printf("The input values %d %d \n",j,k);
getch();
}
 
OUTPUT:
 
3
2
3
total values inputted 3
The input values 3 2


Subscribe To Free Daily Newsletter!

Get Free News Updates Delivered Directly To Your Inbox
About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to contact us.



What's New and Popular





Popular Article