1.I want the output like following.
If the word is "STUDENT".The output will be "STTNUED" .
2.print like following
*
**
***
****
*****
****
***
**
*
**
***
****
*****
****
***
**
*
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
raj kadamPosted Nov 24, 2015, 6:41 AM
VulpesPosted Jun 13, 2014, 6:37 AM
Anupam SinghPosted Jun 13, 2014, 6:26 AM
VulpesPosted Jun 13, 2014, 6:21 AM
"STUDENT" reversed would be "TNEDUTS" but you say the output should be "STTNUED".
Anupam SinghPosted Jun 13, 2014, 3:18 AM
string str="STUDENT" it has 7 characters so I can reverse it using :
for(int i=7;i>=0;i--)
{
Console.Write(str[i]);
}
2.