🔒 Closed Pahelp po C programming

Status
Not open for further replies.

Terror_

Fanatic
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;
}
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 1
    Replies
  • 496
    Views
  • 2
    Participants
Last reply from:
SwOrDsLaSh

Trending Topics

Online now

Members online
1,087
Guests online
3,992
Total visitors
5,079

Forum statistics

Threads
2,308,690
Posts
29,186,664
Members
1,191,170
Latest member
halwynpuf
Back
Top