Content deleted Content added
→Python implementation: Reinstate rmvd type hinting |
The Linux and GNU coding styles keep 1 white space in functions calls |
||
Line 41:
#include <stdio.h>
double f (double t)
{
return sqrt(fabs(t)) + 5 * pow(t, 3);
}
int main (void)
{
double a[11], y;
Line 52:
for (i = 0; i < 11; i++)
scanf ("%lf", &a[i]);
for (i = 10; i >= 0; i--) {
y = f (a[i]);
if (y > 400)
printf ("%d TOO LARGE\n", i);
else
printf ("%d %f\n", i, y);
}
|