#!/usr/bin/env ruby # -*- coding: utf-8 -*- print("数字を入れてください:") a = gets.to_i print("何乗しますか:") b = gets.to_i print("答えは") printf("%d\n",a**b)