Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answer / 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 |
Why is %d used in c?
What is modeling?
User define function contain thier own address or not.
when i declare as: void main() { clrscr(); int a=10; printf("%d",a) } my problem that why generate a error in above programs. please tell me answer seriously .
write a c/c++ programthat connects to a MYSQL server and checks if the INNoDB plug in is installed on it.If so your program should print the total number of disk writes by MYSQL.
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Is array a primitive data type in c?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question
What is a constant and types of constants in c?
2. Write a function called hms_to_secs() that takes three int values—for hours, minutes, and seconds—as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.
find a number whether it is even or odd without using any control structures and relational operators?
22 Answers Microsoft, Shashank Private Limited,