Advertisement
Fahim_789

Loop4(1 to n)Even print

May 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int i,n;
  5.     printf("Enter the numbers : ");
  6.     scanf("%d",&n);
  7.     for(i=2;i<=n;i=i+2)
  8.     {
  9.         printf("%d\n",i);
  10.     }
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement