Ask your own question, for FREE!
Computer Science 20 Online
OpenStudy (anonymous):

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

OpenStudy (anonymous):

@ganeshie8 @confusao @atlas @Nurali @niki @RANE @stgreen

OpenStudy (anonymous):

Please its very urgent for me

OpenStudy (rane):

sorry i don't do CS

OpenStudy (anonymous):

okay

OpenStudy (anonymous):

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(); }

OpenStudy (anonymous):

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

OpenStudy (anonymous):

u mean a single digit 5 is the i/p and u obtain the o/p as stated by u

OpenStudy (anonymous):

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 :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!