DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = Write programme in c language to find the power of one no. to another.? - iTechForums
Login
Search
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 3
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2008, 04:01 PM
andy andy is offline
Junior Member
 
Join Date: May 2008
Posts: 8
Default

Write programme in c language to find the power of one no. to another.?


i.e. a raise to b
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-14-2008, 08:41 PM
Ahmad Nasser Ahmad Nasser is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default

int pow(int a, int b)
{
if(b<0)
{
res=0;
}
int res=1;
for(int i=0;i<b;i++)
{
res*=a;
}
return res;
}

// Hope this helps;
// Enjoy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Broadband service over power lines in Texas to shut down (AP) Tech News Tech News 0 05-07-2008 10:13 PM
Where can i find a free C builder to write my code? baza1342 Delphi & Kylix 1 05-06-2008 05:19 PM
Can anyone suggest reading materials (book or web) to learn how to programme, code tomtechnical Web Scripts 4 05-06-2008 12:31 PM
Help me to write a mySQL query . How I write? Jack J MySQL 0 05-06-2008 10:21 AM
where i can write a perl language like i can write html in notepad? idontknow Perl 0 05-06-2008 09:30 AM

Your Ad Here

All times are GMT. The time now is 11:11 PM.