Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,i,sum=0;
- for(i=0;i<5;i++)
- {
- printf("enter the numbers:\n");
- scanf("%d",&n);
- if(i<0)
- {
- continue;
- }
- sum=sum+n;
- }
- printf("\n sum of positive integers=%d",sum);
- return 0;
- }
Add Comment
Please, Sign In to add comment