How to input three number in C

1 Answer

0 votes
#include <stdio.h>
 
int main()
{
    int a, b, c;
    
	scanf("%d %d %d", &a, &b, &c);
	
	printf("a = %d b = %d c = %d\n", a, b, c);
	
     
    return 0;
}
 
 
 
 
/*
run :
 
3 7 18
a = 3 b = 7 c = 18
 
*/
 

 



answered Feb 9, 2021 by avibootz

Related questions

...