I'm new to C and I'm trying to write a program as an assignment. The user should input 7 floats which will then be stored in an array.
#include <stdio.h>
#include <string.h>
int main() {
float data[32];
printf("Instert 7 values, separated by spaces: ");
scanf("%f %f %f %f %f %f %f", data);
return 0;
}
And I keep getting the error
warning: more '%' conversions than data arguments [-Wformat]
scanf("%f %f %f %f %f %f %f", data);
I tried to look for a solution online but I couldn't figure it out, what am I doing wrong?