Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a Go program to declare a map with string keys and integer values, and print a value for a specific key.

Easy

Problem Statement

Create a Go program to declare a map with string keys and integer values, and print a value for a specific key.

Sample Input

A map of string-integer pairs (e.g., {"John": 85, "Alice": 90}).

Sample Output

90

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
package main import "fmt" func main() { // Create a map and print the value for a specific key }
Log in or sign up to run or submit your code.Log inSign up
Input
A map of string-integer pairs (e.g., {"John": 85, "Alice": 90}).
Expected Output
90