0
Write a program that will display f.c.e and a.b.u
using array formati
4 Respuestas
+ 6
#include <iostream>
using namespace std;
int main()
{
char array1[3] = {'f', 'c', 'e'};
char array2[3] = {'a', 'b', 'u'};
for (int i = 0; i < 3; i++)
{
cout << array1[i] << ".";
}
cout << endl;
for (int i = 0; i < 3; i++)
{
cout << array2[i] << ".";
}
return 0;
}
+ 6
@Kenyatta I was betting on that f.c.e and a.b.u was probably some sort of abbreviation for something else so my attempts should have just been some sort of demo on arrays. Nonetheless, you are right. Guess I should hold back from going FreeAnsLearn.