Aktualizovat „du4/program.c“
This commit is contained in:
parent
ab77dc0676
commit
9157d04d01
@ -4,6 +4,7 @@ int main(){
|
|||||||
while(1){
|
while(1){
|
||||||
char read[1000000];
|
char read[1000000];
|
||||||
scanf("%[^\n]", read);
|
scanf("%[^\n]", read);
|
||||||
|
scanf("%*c");
|
||||||
float num1, num2, answer;
|
float num1, num2, answer;
|
||||||
char action;
|
char action;
|
||||||
sscanf(read, "%f %c %f %*c %f", &num1, &action, &num2, &answer);
|
sscanf(read, "%f %c %f %*c %f", &num1, &action, &num2, &answer);
|
||||||
|
Loading…
Reference in New Issue
Block a user