Control structure
, Managing Input and Output Operations
• The three essential functions of a computer are reading, process
and writing data.
• Majority of the programs take data as input, and then after process
the processed data is being displayed which is called information.
• scanf() and printf() are predefined function to read and print data.
,Example:
#include<stdio.h>
void main()
{
int a,b,c;
printf("Please enter any two numbers: \n");
scanf("%d %d", &a, &b);
c = a + b;
printf("The addition of two number is: %d", c);
}
, Output:
10
20
The addition of two number is: 30