🔒 Closed Pahelp po C programming

Status
Not open for further replies.

Terror_

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

Trending Topics

Online now

Members online
1,024
Guests online
1,032
Total visitors
2,056

Forum statistics

Threads
2,274,739
Posts
28,957,893
Members
1,233,411
Latest member
marti
Back
Top