Question #314356

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

Expert's answer

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];
		}
	}
}
LATEST TUTORIALS
APPROVED BY CLIENTS