#include<stdio.h>
int main()
{
int n, i, j;
float a, b, c, sum = 0;
scanf("%d", &n);
float anik[n];
for(i=0; i<n; i++)
{
scanf("%f %f %f", &a, &b, &c);
sum = 2 * a + 3 * b + 5 * c;
anik[i] = sum;
}
for(i=0; i<n; i++)
{
printf("%.1f\n", anik[i]/10);
}
return 0;
}
int main()
{
int n, i, j;
float a, b, c, sum = 0;
scanf("%d", &n);
float anik[n];
for(i=0; i<n; i++)
{
scanf("%f %f %f", &a, &b, &c);
sum = 2 * a + 3 * b + 5 * c;
anik[i] = sum;
}
for(i=0; i<n; i++)
{
printf("%.1f\n", anik[i]/10);
}
return 0;
}
Comments
Post a Comment