Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.

Answer Posted / aravind

#include<stdio.h>
#include<math.h> /*I am not sure whether this lib fun is gud*/
int main()
{
int num=12345,result;
result=pow(12345,2);
printf("result=%d",result);
}

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you increase the size of a dynamically allocated array?

1146


What is c definition?

1210


How do shell structures work?

1078


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1075


What are the difference between a free-standing and a hosted environment?

1236


Can you add pointers together? Why would you?

1083


What is bss in c?

1053


Is it possible to pass an entire structure to functions?

952


What is the value of uninitialized variable in c?

986


int i=10; printf("%d %d %d", i, i=20, i);

1561


Explain main function in c?

1050


Tell us two differences between new () and malloc ()?

1127


What are the rules for identifiers in c?

1034


What is auto keyword in c?

1168


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

3013