All submissions

Multiple Namespaces

#include <iostream>
using namespace std;

namespace UART{
    int baudRate=115200;
}
namespace SPI{
    int clockSpeed=1000000;
}

// your code here: declare namespace UART with int baudRate=115200
// your code here: declare namespace SPI with int clockSpeed=1000000

int main() {
    cout << "UART Baud: " << UART::baudRate << "\n";
    cout << "SPI Clock: " << SPI::clockSpeed << "\n";
    return 0;
}
Loading...

Input

Expected Output

UART Baud: 115200 SPI Clock: 1000000