Friday, October 22, 2021

C program to raise any number x to a positive power n

Today we make a  Program To C Program to raise any number x to a positive power n.i’m using Dev c.Now Try To Make it.

#include<stdio.h>

#include<conio.h>

#include<math.h>


void main()

{

int x,n,result;

clrscr(); //to clear the scrren

printf(“Enter value of x and n:”);

scanf(“%d%d”,&x,&n);

result=pow(x,n);

printf(“nResult=%d”,result);

getch(); //to stop the screen

}

3 comments:


  1. Thanks for this information. it is helpfull and worthy
    Laptop Repair Center offers quality service for your laptop at a reasonable cost. We offer doorstep support, 24*7 onsite support, repair all brand laptops, have an expert team for onsite support, and much more. for more contact us on 7291903784
    laptop repair center in Delhi

    ReplyDelete
  2. thank u for this valuable information..very helpful
    Family Chaat is one of the best selling north indian food booth such as Pani Puri, Aloo Tikki Chaat, Bhalla Papari, Gol Gappa Chaat, Cholay Tikki, Papri chaat, Samosa cholay, Samosa chaat, Raj kachori chaat, Pao Bhaji, Vada Pao, and Samosa Bada Pao. Family Chaat is made available to every customer with unique flavor, quality taste, and hygiene and we are the best chaat provider in India.
    street food indian

    ReplyDelete
  3. i found it very helpful. thank u

    Mast Banarasi Paan is one of the best selling paan such as Rajwadi paan, Laddu paan, Choclate Paan, Fire paan, Silver paan. Mast Banarasi Paan is made available to every customer with unique flavor, quality taste, and hygiene and we are the best paan provider in India.
    banarasi paan

    ReplyDelete