What's new

C & C++ Pahelp po C programming

Terror_

Honorary Poster
Ano po kulang sa codes ko? Wala po kasi nalabas na result, hindi nagcocompute nilagay na number.



#include<stdio.h>
int main(void)
{
// Local Declarations
int x;
int sum=0;
// Statements
printf("Enter your numbers:<EOF>to stop.\n");
while(scanf("%d",&x)!= EOF)
sum+=x;
printf("\nThe total is:%d\n",sum);
return 0;
}
 

Similar threads

Back
Top