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

Programming Exercises

Create a Go program to declare a function greet() that prints "Welcome to Go!".

Easy

Problem Statement

Create a Go program to declare a function greet() that prints "Welcome to Go!".

Sample Input

No input required.

Sample Output

Welcome to Go!

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
package main import "fmt" func greet() { // Write the function body to print the greeting message } func main() { // Call the greet function }
Log in or sign up to run or submit your code.Log inSign up
Input
No input required.
Expected Output
Welcome to Go!