program in c to find x^y!%m
Answers
Answered by
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
*/
#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
Biology,
7 months ago
Biology,
7 months ago
Social Sciences,
7 months ago
History,
1 year ago
Biology,
1 year ago