View Code of Problem 112

#include <stdio.h>
int main()
{
  int N;
 while(scanf("%d ",&N)!=EOF)
 {
   if(N=0)
     break;
   else
   {
     int a,b,c;
     scanf("%d %d %d ",&a,&b,&c);
     printf("%d",a+b+c);
   }
 }
}

Double click to view unformatted code.


Back to problem 112