Simple Namespace with Variables

#include <iostream>
using namespace std;

namespace Config {
    // your code here: declare int baudRate=9600 and int threshold=50
    int baudRate=9600;
    int threshold=50;
}

int main() {
    printf("Baud: %d, Threshold: %d", Config::baudRate,Config::threshold);
    return 0;
}
Upvote
Downvote
Loading...

Input

Expected Output

Baud: 9600, Threshold: 50