Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- void main(){
- int i;
- for(i=1;i<=15;i++){
- if((i<=5||(i>10&&i<=15))&&(i%2==1)){
- printf("0");
- }
- else if((i>=6&&i<=10)&&(i%2==0){
- printf("O");}
- else{
- printf(" ");
- }
- if(i%5==0)
- {printf("\n");}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement