I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index » Programming » C/C++ »

trowa0830\′s Photo
10 Jul 08, 4:40PM
thanks sir.. i need another help i want a prgram that actually adds the number input then displays the sum when 0 is enterd. all i have is this old code for adding the sum.
#include<stdio.h>
#include<conio.h>
main()
{
int sum,n1,n2,n3,n4;
clrscr();
printf("Enter numbers: ");
scanf("%d%d%d%d",&n1,&n2,&n3,&n4);
sum=n1+n2+n3+n4;
printf("\n The sum is: %d", sum);
getch();
}
Currently you need to be logged in to leave a message.