/* Write a C Program to read numbers from keyboard continuously till the user presses 999 and to find the sum of only positive number */ #include < stdio.h> void main() { int num1=0, sum=0; while (num1!=999){ if(num1>0) sum=sum+num1; printf("\nEnter the values (999 to exit) :"); scanf("%d",&num1); } printf("\n SUM of all number :%d \n",sum ); }