Saturday, May 22, 2010

How to write a prog to print Hello world in X in c language?

program to print above text in X , not using pointers or arrays , just basic loops like for etc. for ex:- ' l ' should appear like


X


X


X


X

How to write a prog to print Hello world in X in c language?
Replace X with whatever number you want to use.


Your question makes little sense, but I think this is what you want:





void main(void){


int doyourownhomework;





for(doyourownhomework=0;


doyourownhomework%26lt;X;


doyourownhomework++)





printf("Hello world");





}


No comments:

Post a Comment