Quote:
but i can't give input on this program when i use scanf("%1.1f",&input[j]);(in bold and underline). Now what to do and why??
You may have to read documentation about scanf.
Try
scanf("%1.1f",&input[j]);
Another problem
for(int i=1;i<=num;i++){
for(int j=0;j<=2;j++){
scanf("%1.1f",&input[j]);
sum=(input[0]*2.0)+(input[1]*3.0)+(input[2]*5.0);
}
sum=(input[0]*2.0)+(input[1]*3.0)+(input[2]*5.0);
printf("%1.1f\n",sum/10.0);
}