Hi all
I want to make character pascal using strings in c just like
SOFTWARE
S
SO
SOF
SOFT
SOFTW
SOFTWA
SOFTWAR
SOFTWARE

plz help me how to make this type of ????

Recommended Answers

All 4 Replies

We're not a homework writing service. Please provide proof that you've made an honest attempt to solve the problem on your own.

cout << SOFTWARE;
cout << S;
cout << SO;
cout << SOF;
cout << SOFT;
cout << SOFTW;
cout << SOFTWA;
cout << SOFTWAR;
cout << SOFTWARE;

crappy question, crappy answer

commented: And no code tags. Shame. :-D +17
commented: Really crappy answer because thats cout isn't C -2
cout << SOFTWARE;
cout << S;
cout << SO;
cout << SOF;
cout << SOFT;
cout << SOFTW;
cout << SOFTWA;
cout << SOFTWAR;
cout << SOFTWARE;

crappy question, crappy answer

cout<< belongs to "C++", Not to "C"

commented: bad logic +0
commented: Really bad logic xD -1
commented: +1 for putting code tags inside quote +13

cout << SOFTWARE;
cout << S;
cout << SO;
cout << SOF;
cout << SOFT;
cout << SOFTW;
cout << SOFTWA;
cout << SOFTWAR;
cout << SOFTWARE;

crappy question, crappy answer

sergent ,
The above code was not my logic. Its your logic. At last I have given comment for your code. "cout<< belongs to "C++", Not to "C". only this is mine.
Unnecessarily pls dont give negative points for others !

commented: nice talk +2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.