How To Square A Number In Dev C++

I am having problems using the square root function in my program. I have included outside. I am having problems using the square root function in my program. I have included outside of main and my formula using the square. Using square root in dev C Home. Programming Forum Software Development Forum. Oct 10, 2009  I want to add square of 2 numbers and get the average. But dont know to get the square of a number in C please post the keyword to get squar. C and C FAQ; Forum Actions. Line Numbers in VI and/or Visual C:: C. By kuphryn in forum C Programming Replies: 2.

How To Square A Number In Dev C++

hello friends
i start learning c++ and still at basics and was trying to solve a exercise in second chapter. this exercise asked to print a square using asterisks. i am able to create a asterisks solid square and colde is as follows.

problem is that i dont need solid square only sides and program should be able to create any size of squrare specified by user. Desired output should look like this

SquareC++

Please can any one give me hint what should i do, i dont need code at the moment i wanna have a go at it first. thanx in advance for any tips.

Square Root In Dev C++

  • 3 Contributors
  • forum 5 Replies
  • 792 Views
  • 1 Day Discussion Span
  • commentLatest Postby RoyalwolfLatest Post

vmanes1,165

How To Square Root In Dev C++

Consider testing the current value of col and row, only display the * if row is top or bottom, or if col is left or right edge.

Square A Negative Number

You also should consider getting in the habit of processing in a row oriented fashion. It may not make any difference in this problem, but in future work it will.

How To Square Something In C

And, when you work with arrays, the usual loop is for( i = 0; i < size; i++ ) Another habit you should develop.