Answers for "get on line of user input in c"

C
17

Syntax To Take Input In C

Integer: Input: scanf("%d", &intVariable); Output: printf("%d", intVariable);
Float: Input: scanf("%f", &floatVariable); Output: printf("%f", floatVariable);
Character: Input: scanf("%c", &charVariable); Output: printf("%c", charVariable);
Posted by: Guest on August-12-2020
0

how to take inputs in one line in c

rintf("Enter the coordinates of the second point (x1,y1): ");
	scanf("%f%f",&coordinate2[0],&coordinate2[1]);
Posted by: Guest on October-14-2021

Code answers related to "C"

Browse Popular Code Answers by Language