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

Trending Topics

Online now

Members online
538
Guests online
1,432
Total visitors
1,970

Forum statistics

Threads
2,286,439
Posts
29,037,765
Members
1,217,951
Latest member
lolpops
Back
Top