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.
Anupam SinghRank #643 · 3.7K reputationPosted Jun 12, 2014, 11:18 PM EDT
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.
VulpesRank #55 · 29.2K reputationPosted Jun 13, 2014, 2:21 AM EDT
"STUDENT" reversed would be "TNEDUTS" but you say the output should be "STTNUED".
Anupam SinghRank #643 · 3.7K reputationPosted Jun 13, 2014, 2:26 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jun 13, 2014, 2:37 AM EDT
raj kadam75 reputationPosted Nov 24, 2015, 1:41 AM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts