<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>functions on Progmeister</title>
    <link>https://progmeister.ch/categories/functions/</link>
    <description>Recent content in functions on Progmeister</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 14 Mar 2020 00:00:00 +0100</lastBuildDate>
    
	<atom:link href="https://progmeister.ch/categories/functions/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Linear Program: for-loops and functions</title>
      <link>https://progmeister.ch/blog/problems/functions/</link>
      <pubDate>Sat, 14 Mar 2020 00:00:00 +0100</pubDate>
      
      <guid>https://progmeister.ch/blog/problems/functions/</guid>
      <description>Given integer n as an input, write a program that determines if n is a power of 2. In this case, print the power value.
Implement a function func power2(n uint) int, which returns the power value, or -1, if n is not the power of 2.
Example:
power2(8) = 3   Given integers n and k as an input, write a program that determins if n is a power of k.</description>
    </item>
    
  </channel>
</rss>