INPUT:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
int num,squ,cube;
Console.WriteLine("enter
the num");
num = Convert.ToInt32(Console.ReadLine());
while (num != 11)
{
squ=num*num;
cube=num*num*num;
Console.WriteLine("squre of num is {0} and\ncube of num is{1}",squ,cube);
break;
}
}
}
}
No comments:
Post a Comment