Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: __try Pin
Paul M Watt25-May-02 8:29
mentorPaul M Watt25-May-02 8:29 
GeneralRe: __try Pin
Mazdak25-May-02 8:42
Mazdak25-May-02 8:42 
GeneralRe: __try Pin
Alexandru Savescu25-May-02 23:03
Alexandru Savescu25-May-02 23:03 
GeneralHelp Needed Pin
zygo650025-May-02 5:19
zygo650025-May-02 5:19 
GeneralRe: Help Needed Pin
Nish Nishant25-May-02 5:39
sitebuilderNish Nishant25-May-02 5:39 
GeneralRe: Help Needed Pin
Ravi Bhavnani25-May-02 5:47
professionalRavi Bhavnani25-May-02 5:47 
GeneralRe: Help Needed Pin
pnpfriend25-May-02 5:55
pnpfriend25-May-02 5:55 
GeneralRe: Help Needed Pin
Renjith Ramachandran25-May-02 6:48
Renjith Ramachandran25-May-02 6:48 
i think u need it in c++

include Header files here



void main()
{

int nTotal,nCOunt;

cout<<"How much rows ?";cin>>nTotal;
while(!(nTotal%2))
{
cout<<"Enter Odd No :";
cin>>nTotal;
}

int i,j,k,l;

for(i=1;i<=nTotal;i+=2)
{
cout<<"\n"; //as u like the \n here hahah..
for(j=1;j<=i;j++)
cout<<"* ";

}

for(k=(i-4);k>=1;k-=2)
{
cout<<"\n";
for(l=1;l<=k;l++)
cout<<"* ";

}
}//end main


TRY IT NOW
RENJITH

HI FRIEND I THINK I GAVE THE SOLUTION AS U ASK ...
R U SATISFIED? NEED ANY MORE HELP??

R_Renjith The True CP ian
GeneralRe: Help Needed Pin
Mazdak25-May-02 7:04
Mazdak25-May-02 7:04 
GeneralRe: Help Needed Pin
Renjith Ramachandran25-May-02 7:29
Renjith Ramachandran25-May-02 7:29 
GeneralRe: Help Needed Pin
Michael Dunn25-May-02 8:39
sitebuilderMichael Dunn25-May-02 8:39 
GeneralRe: Help Needed Pin
tiaozi25-May-02 22:40
tiaozi25-May-02 22:40 
Generalsilly question Pin
pnpfriend25-May-02 4:58
pnpfriend25-May-02 4:58 
GeneralRe: silly question Pin
Stan Shannon25-May-02 5:22
Stan Shannon25-May-02 5:22 
GeneralRe: silly question Pin
pnpfriend25-May-02 6:23
pnpfriend25-May-02 6:23 
GeneralRe: silly question Pin
Stan Shannon25-May-02 6:36
Stan Shannon25-May-02 6:36 
GeneralRe: silly question Pin
pnpfriend25-May-02 8:56
pnpfriend25-May-02 8:56 
GeneralRe: silly question Pin
PJ Arends25-May-02 9:46
professionalPJ Arends25-May-02 9:46 
GeneralRe: silly question Pin
pnpfriend26-May-02 4:28
pnpfriend26-May-02 4:28 
GeneralRe: silly question Pin
pnpfriend26-May-02 4:29
pnpfriend26-May-02 4:29 
GeneralCreate Edit Control Pin
laphijia25-May-02 4:23
laphijia25-May-02 4:23 
GeneralRe: Create Edit Control Pin
Martin Speiser25-May-02 5:18
Martin Speiser25-May-02 5:18 
GeneralNTFS Pin
Mazdak25-May-02 3:18
Mazdak25-May-02 3:18 
GeneralRe: NTFS Pin
redeemer25-May-02 3:32
redeemer25-May-02 3:32 
GeneralRe: NTFS Pin
Mazdak25-May-02 3:35
Mazdak25-May-02 3:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.