1 1 0 1 1 0 0 0 1 1 0 1 1 Could someone give me a C program for the above output please
@ganeshie8 @confusao @atlas @Nurali @niki @RANE @stgreen
Please its very urgent for me
sorry i don't do CS
okay
im attaching a code just check if it will do #include<stdio.h> #include<conio.h> void main() { clrscr(); printf("\t\t\t\t\t 1\n\n\t\t\t\t 1 \t 0 \t1\n\n\t\t\t1\t 0\t 0\t 0\t1\n\n\t\t\t\t 1 \t 0 \t1\n\n\t\t\t\t\t 1"); getch(); }
no Sorry That I did not mentioned in the Question It should be dynamic I mean for the above output the Input i should give is 5
u mean a single digit 5 is the i/p and u obtain the o/p as stated by u
We need to declare two variables i,j and take two loops for ( i = 0 ; i < J ;i++) some thing like that but sure the logic is to run the loops twice :) I may get it if I think its been so long but sure I will give a shot on this :)
Join our real-time social learning platform and learn together with your friends!