Computer Science, asked by tusharkashyap07, 1 year ago

program in c to find x^y!%m

Answers

Answered by Anonymous
0
HEY MATE HERE IS THE PROGRAM

#include<stdio.h>
#include<conio.h>
void main()

{

int x,y; clrscr();

printf("Enter the value of X:-"); scanf("%d",&x);

printf("Enter the value of Y:-"); scanf("%d",&y);

printf("%f\t",(float)(x+y)/(x-y));

printf("%f\t",(float)(x+y)/2);

printf("%f\t",(float)(x+y)*(x-y));
getch();

}

/*
********
OUTPUT
********

Enter the value of X:-13

Enter the value of Y:-12

25.000000

12.500000

25.000000
*/
Attachments:
Similar questions