Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | James Kuyper <jameskuyper@verizon.net> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Write a program to print star using * ? |
| Date | 2012-10-23 12:35 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <5086C740.2070909@verizon.net> (permalink) |
| References | <9291e324-bdc8-4153-b40e-4c53fc4bcec3@googlegroups.com> <b0814c0d-1dad-465e-bb14-73e5469254fc@googlegroups.com> |
On 10/23/2012 12:03 PM, Nikhil Joshi wrote:
> On Tuesday, October 23, 2012 9:22:33 PM UTC+5:30, Nikhil Joshi wrote:
>> guys help me in making thi program?
>
> main()
> {
> int i,j;
> for(i=0;i<5;i++)
> {
> for(j=i;j<5;j++)
> {
You should #include <stdio.h> at the top of your program, before using
the following functions.
> printf("*");
> printf("\n");
> }
> }
> getch();
That is not a C standard library function. You should avoid using such
functions unless necessary. If it is necessary, your program will not be
portable to systems where getch() is not provided, or has different
behavior than you expect it to have, so you need to know which systems
your program is intended to run on, and you should also let us know.
> }
>
>
>
> this is basic structure printing star..but dont know how make a program for star?
You need to tell us more precisely what it is you want your program to
do. Except for the two issues I've raised, the behavior of your program
is quite clear, but it's not clear how it fails to meet your needs.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Write a program to print star using * ? Nikhil Joshi <nitin.nitinperderusted.rastogi@gmail.com> - 2012-10-23 08:52 -0700
Re: Write a program to print star using * ? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-10-23 09:56 -0600
Re: Write a program to print star using * ? Nikhil Joshi <nitin.nitinperderusted.rastogi@gmail.com> - 2012-10-23 09:03 -0700
Re: Write a program to print star using * ? James Kuyper <jameskuyper@verizon.net> - 2012-10-23 12:35 -0400
Re: Write a program to print star using * ? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-10-23 10:45 -0600
Re: Write a program to print star using * ? pete <pfiland@mindspring.com> - 2012-10-23 15:45 -0400
Re: Write a program to print star using * ? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-10-23 19:45 -0600
Re: Write a program to print star using * ? pete <pfiland@mindspring.com> - 2012-10-24 02:58 -0400
Re: Write a program to print star using * ? pete <pfiland@mindspring.com> - 2012-10-25 23:23 -0400
Re: Write a program to print star using * ? Lew Pitcher <lpitcher@teksavvy.com> - 2012-10-26 09:52 -0400
Re: Write a program to print star using * ? pete <pfiland@mindspring.com> - 2012-10-26 20:35 -0400
Re: Write a program to print star using * ? "copiga@h_o_t_mail.co.uk" <copiga@h_o_t_mail.co.uk> - 2012-10-23 11:21 -0500
Re: Write a program to print star using * ? "BartC" <bc@freeuk.com> - 2012-10-23 17:25 +0100
Re: Write a program to print star using * ? Kenneth Brody <kenbrody@spamcop.net> - 2012-10-23 13:21 -0400
Re: Write a program to print star using * ? Lew Pitcher <lpitcher@teksavvy.com> - 2012-10-23 21:59 -0400
Re: Write a program to print star using * ? Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-10-27 06:05 -0700
csiph-web