Answer to Question #314356 in C++ for Axmed

Question #314356

Write a program that prints the first letter of your name using nested loops

1
Expert's answer
2022-03-19T07:29:18-0400
int main()
{
	string arr[10];
	for (int i = 0; i < 10; i++)
	{
		cin >> arr[i];
		for (int l = 0;l < 10; l++)
		{
			cout << arr[i];
		}
	}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog