Mar 19, 2010 #1 A alangs Member level 3 Joined Feb 5, 2010 Messages 57 Helped 3 Reputation 6 Reaction score 3 Trophy points 1,288 Location india Activity points 1,681 can anybody tell me how i can calculate the square of a number without using * operator.plz give me the answer in c language by using for loop......
can anybody tell me how i can calculate the square of a number without using * operator.plz give me the answer in c language by using for loop......
Aug 4, 2010 #2 H htg Full Member level 5 Joined May 1, 2010 Messages 248 Helped 5 Reputation 10 Reaction score 3 Trophy points 1,298 Location Poland Activity points 2,862 You can calculate Exp(Log(x)+Log(x))
Aug 4, 2010 #3 A albbg Advanced Member level 4 Joined Nov 7, 2009 Messages 1,311 Helped 448 Reputation 898 Reaction score 409 Trophy points 1,363 Location Italy Activity points 9,984 Adding the first N odd numbers is equal to calculate N^2. 1 = 1^2 1 + 3 = 2^2 1 + 3 + 5 = 3^2 1 + 3 + 5 + 7 = 4^2 and so on...
Adding the first N odd numbers is equal to calculate N^2. 1 = 1^2 1 + 3 = 2^2 1 + 3 + 5 = 3^2 1 + 3 + 5 + 7 = 4^2 and so on...