0

Write a program that will display f.c.e and a.b.u

using array formati

9th Feb 2017, 12:40 PM
babest shedrack
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; }
9th Feb 2017, 3:11 PM
Hatsy Rei
Hatsy Rei - avatar
+ 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.
9th Feb 2017, 3:46 PM
Hatsy Rei
Hatsy Rei - avatar