Pl print this programme in C language:
*
* * *
* * * * *
* * * * * * *
* * * * *
* * *
*
I have a question in C language?
The point of homework is to encourage you to learn by doing things yourself. If you get someone on the net to do it for you, you are only cheating yourself out of an education.
Rawlyn.
Reply:All righty. But be warned, my C is a bit rusty:
main()
{
printf("*\n");
printf("***\n");
printf("*****\n");
printf("*******\n");
printf("*****\n");
printf("***\n");
printf("*\n");
return 0;
}
(I know that's probably not what you wanted, but you got to earn it to learn it!)
Reply:I'll give you a clue printf function is going to be your best friend. Look in your work books for the rest. don't foerget your ; at the end of each line!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment