Note: This program after running shows unnecessary some numeric.
Input : 5 -4 8 9 -1
Output: 5
89
- #include <stdio.h>
- void main()
- {
- int arr[5]; //int arr[5]={5, -4, 8, 9, -1};
- for(int i=1; i<5; i++){
- scanf("%d\n", &arr[i]);}
- for(int j=0; j<5;j++){
- if(arr[j] > 0)
- printf("%d\n", arr[j]);
- }
- }
একটি মন্তব্য পোস্ট করুন