Download Game! Currently 78 players and visitors. Last logged in:EjectedTraluzaSuzukiBlnk

Breca's Blog >> 46222

Back to blogs index
Posted: 09 Jun 2009 05:37 [ permalink ]
#include <stdio.h>
main()
{
  double sum, v;
  int i;
  sum = 0;
  while (1) { (scanf("%f",v)==i); printf ("\t%lf
",sum=sum+v); }
}

What is wrong with the previous program, what do they want to do with i? I
have made it ALMOST work, but the i is mysterious, plus I don't understand why
it's sum+v, not i+v.