answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

int main(void) {

int a,b,c;

printf("write three numbers:\n");

scanf("%d %d %d", &a,&b,&c);

printf("You entered %d , %d and %d",a,b,c);

getch();

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Why not use the ampression symbol in scanf statement in function?

scanf is a function, not a statement. Example: int a; char name[12]; scanf ("%d %s", &amp;a, &amp;name[0]);


How do you read input buffer of keyboard using C?

scanf();


What happens by the 'scanf' statement in C programming language?

By using the scanf statement in c,we can take the values at run time . for ex a is a variable of type int so, we can assign the value of a using scanf at run time as follows. scanf("%d",&amp;a); here %d is the conversion specifier for integer type.


What happens by the scanf statement in c?

It's a function, not a statement. Use your help system to find out its purpose.


What is the syntax of scanf?

scanf: scanf is a built-in function to read input from the user.


What is scanF function?

scanf() is an input function which reads input from the standard input devices such as keyboard. Syntax: scanf("Control Character",address_list); where control character is a sequence of one or more character such as %d,%f,%lf,%lld. Address list specifies the variables, pointers etc. e.g. scanf("%d",&amp;num);


How do you read a character from the keyboard and will store it in the variable?

Use the scanf() function from the C standard library.


Can you show me whole code how do you write a program in c to calculate the sum of two integers?

#include &lt;stdio.h&gt; int main(){ int a,b scanf("%d",&amp;a); scanf("%d",&amp;b); a=a+b; printf("%d",a); return 0; } Hope this can help you &#9786;


Any integer is input through the keyboard write a c program to find out whether it is an odd number or even number?

printf(\n "ENTER THE NUMBER\t"); scanf{"%d",&amp;a); while(a!=0); { r=a%2; if(r==0) printf("\n\n THE NUMBER IS EVEN \t"); else printf("\n\n THE NUMBER IS ODD \t"); printf ("\n ENTER THE NUMBER \t"); scanf("%d",&amp;a); } getch(); }


How do you input a string value from keyboard in c?

Simple press the keys one by one, end finally press Enter.But if you meant: how the read from keyboard, then use functions like fgets or scanf. (Use the help/manual of your system for details.)


What is the use of scanf function in c?

Hiii,scanf() is an predefined function of C to getting runtime input from the user.Syntax:-scanf("sequence specifier",&variable_name);example:-#includevoid main(){int number;printf("\n Enter any number"); //message to userscanf("%d",&number); //getting input from userprintf("\n entered number is %d",number); // displaygetch();}


Write a c program that reads ten integers and prints the first and the last numbers on one line and second and ninth on one line and so on....?

#include &lt;cstdio&gt; int main() { int x[10]; printf("Enter 10 integers: \n"); for(int i = 0; i &lt; 10; i++) { scanf("%d", &amp;x[i]); } for(int i = 0; i &lt; 10; i++) { printf("%d, ", x[i]); } char wait; scanf("%s", wait); return 0; }