Nitin400

continue statment

Jul 6th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int n,i,sum=0;
  5.     for(i=0;i<5;i++)
  6.     {
  7.         printf("enter the numbers:\n");
  8.         scanf("%d",&n);
  9.         if(i<0)
  10.         {
  11.          continue;
  12.         }  
  13.         sum=sum+n;
  14.     }
  15.     printf("\n sum of positive integers=%d",sum);
  16.     return 0;
  17.    
  18. }
Add Comment
Please, Sign In to add comment