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 |
Heyyy All, Just a challenge . A C program with if Else if(){ /// insert sumthing print ("in if") // insert sumting } else { ///// insert sumthing print ("in else"); //// insert sumthing } can anyone modify it so that program prints. if and else both
How to print "Hi World" without using semi colon?
What is meant by gets in c?
What is union and structure in c?
Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program
what is pointer
C program to perform stack operation using singly linked list
What are header files why are they important?
Why do we use return in c?
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
5 Answers Vector, Vector Solutions,
what is difference between array of characters and string
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??