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(); }
Login