M
msaritha12
Hi, plz tell me how to display the following format
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
0 1 0 1 0 1
1 0 1 0 ............
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
0 1 0 1 0 1
1 0 1 0 ............
do your own homework. You are just lazy sarithaHi, plz tell me how to display the following format
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
0 1 0 1 0 1
1 0 1 0 ............
Hi, plz tell me how to display the following format
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
0 1 0 1 0 1
1 0 1 0 ............
Hi, plz tell me how to display the following format
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
0 1 0 1 0 1
1 0 1 0 ............
Martin said:Had the exact same assignment just recently... and I got an A!
#include "stdio.h"
void main(int)
{
unsigned x = 0;
int i = 0;
while(i >> 1, i << 0)
{
PRINTF("%u", i <<= x));
}
return 1;
}
Looks a hell of a lot more complicated than it is! Hope that helps!
Martin
Hi, plz tell me how to display the following format
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
0 1 0 1 0 1
1 0 1 0 ............
I really appreciate the great quality of your code, and
the flawless execution. No bugs, I have tested it
and found it PERFECT!
Martin Wells said:jacob:
Glad I could help, I hope we get more eager students posting homework
questions in a effort to learn.
If only one person drops a dead animal down a well, the well is poisoned for
everyone. You might keep that in mind.
Martin Wells said:Wasters are of no use to us.
[comp.lang.c] Kenneth Brody said:#include <unistd.h>
void main(char **argv,int argc)
{
putz("1")
Us refers to you and someone else, don't include me in your "us". I get no
fun at all in jamming a crowbar in someone's education.
Any minimally-competent teacher will spot that that
solution is several leagues beyond what an introductory programming
student is usually capable of; if it doesn't line up neatly with the
student's other assignments, the teacher will know it was copied, and
apply whatever punishment the educational institution deems appropriate.
Charlton Wilbur said:If a student at an educational institution submits someone else's work
as his own, the consequences are usually far more severe than just not
getting the certificate at the end. In many cases, they include an
invitation to leave the institution, and a note in the student's
record that will probably be disclosed to any other educational
institutions he later applies to.
Hi, plz tell me how to display the following format
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
0 1 0 1 0 1
1 0 1 0 ............
Hi, plz tell me how to display the following format
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
0 1 0 1 0 1
1 0 1 0 ............
I gave one possible answer in reply to your post in comp.std.c. Please see
there.
Show us the code you are using (the real code - cut and paste it) andthanks for u r reply.
but using that code iam not getting above format.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.