🔒 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
  • 500
    Views
  • 2
    Participants
Last reply from:
SwOrDsLaSh

Trending Topics

Online now

Members online
456
Guests online
2,278
Total visitors
2,734

Forum statistics

Threads
2,331,976
Posts
29,261,528
Members
1,147,959
Latest member
v69
Back
Top