create two variables one containing the uppercase character G and the other with uppercase letter O you can want as long as its a valid name that is accepted in c++ print out the values of the varaiable in alternate order, twice, on seperate lines, using the std::cout function the outpit generated by your code must be the same as that of the sample output
#include <iostream>
int main() {
char ch1 = 'G';
char ch2 = 'O';
std::cout << ch2 << ch1 << std::endl;
std::cout << ch2 << ch1 << std::endl;
return 0;
}
Comments
Leave a comment