how to scanf two numbers in c code example
Example 1: add 2 numbers in c
#include
int main() {
int a, b, sum;
printf("\nEnter two no: ");
scanf("%d %d", &a, &b);
sum = a + b;
printf("Sum : %d", sum);
return(0);
Example 2: scanf with multiple variables
scanf( "%i %i %i %i", &minx, &maxx, &miny, &maxy);