File: temp.c

package info (click to toggle)
fractxtra 6-2
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 4,064 kB
  • ctags: 70
  • sloc: ansic: 343; makefile: 30; sh: 14
file content (10 lines) | stat: -rw-r--r-- 168 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>

void main()
{
   int n;
   float a=-2.19, b=0.95;

   printf("\n\n");
   for (n=0; n<=5; ++n)  printf("%G\n", ((5-n)/5.0)*a + (n/5.0)*b);
}