Golang Basic Programs

This section contains the basic programs of Golang (Go programming language) like printing text, reading values, programs based on the basic operators, etc.

Practice these Golang basic programs to learn the basic concepts of Golang, these programs contain the solved code, outputs, and the detailed explanation of the statements, functions used in the Golang basic programs.

List of Golang Basic Programs

  1. Golang program to print Hello World
  2. Golang program to add two integer numbers
  3. Golang program to find the average of three numbers
  4. Golang program to swap two integer numbers
  5. Golang program to read and print an integer variable
  6. Golang program to demonstrate the use of Printf() and Scanf() function
  7. Golang program to get the ASCII value of a character
  8. Golang program to print the absolute value of float number
  9. Golang program to print the absolute value for an integer number
  10. Golang program to calculate the power of a number using the Pow() function
  11. Golang program to find the largest number between two numbers using math.Max() function
  12. Golang program to find the smallest number between two numbers using math.Min() function
  13. Golang program to demonstrate the math.Ceil() function
  14. Golang program to demonstrate the math.Floor() function
  15. Golang program to find the remainder for floating-point numbers using math.Mod() function
  16. Golang program to check given number is EVEN or ODD
  17. Golang program to check given number is positive or negative
  18. Golang program to check given year is a leap year or not
  19. Golang program to find the largest number between two numbers
  20. Golang program to find the largest number among three numbers
  21. Golang program to convert the Fahrenheit to Celsius
  22. Golang program to convert the Celsius to Fahrenheit
  23. Golang program to demonstrate the bitwise Left Shift (<<) operator
  24. Golang program to demonstrate the bitwise Right Shift (>>) operator
  25. Golang program to demonstrate the BITWISE AND (&) operator
  26. Golang program to demonstrate the BITWISE OR (|) operator
  27. Golang program to demonstrate the BITWISE XOR (^) operator
  28. Golang program to demonstrate the NOT (!) operator
  29. Golang program to calculate the area of the circle
  30. Golang program to calculate the perimeter of the circle
  31. Golang program to calculate the area of the Rectangle
  32. Golang program to demonstrate the 'const' keyword





Comments and Discussions




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.