//C Program to Calculate Average of Three Numbers #include <stdio.h> #include <conio.h> int main() { int n1,n2,n3; float avg; printf("\nEnter three numbers : " ); scanf("%d %d %d",&n1,&n2,&n3); avg=(n1+n2+n3)/3; printf("\nAverage of the given three numbers is : %0.2f",avg); rRead more
//C Program to Calculate Average of Three Numbers
#include <stdio.h>
#include <conio.h>
int main()
{
int n1,n2,n3;
float avg;
printf(“\nEnter three numbers : ” );
scanf(“%d %d %d”,&n1,&n2,&n3);
avg=(n1+n2+n3)/3;
printf(“\nAverage of the given three numbers is : %0.2f”,avg);
return 0;
}
//C program to find last digit of a given number#include <stdio.h>int main(){int number, lastdigit;printf("\n Please Enter Any Integer Number : ");scanf("%d", & number);lastdigit = number % 10;printf(" \n The Last Digit of the Given Number %d is = %d", number, lastdigit);return 0;} Read more
//C program to find last digit of a given number
#include <stdio.h>
int main() { int number, lastdigit;
printf(“\n Please Enter Any Integer Number : “); scanf(“%d”, & number);
lastdigit = number % 10;
printf(” \n The Last Digit of the Given Number %d is = %d”, number, lastdigit);
#include<bits/stdc++.h> using namespace std; int area_Rectangle(int length, int breadth) { int area = length * breadth; return area; } int perimeter_Rectangle(int length, int breadth) { int perimeter = 2*(length + breadth); return perimeter; } int main() { int length = 5; int breadth = 7; coutRead more
#include<bits/stdc++.h>
using namespace std;
int area_Rectangle(int length, int breadth)
{
int area = length * breadth;
return area;
}
int perimeter_Rectangle(int length, int breadth)
{
int perimeter = 2*(length + breadth);
return perimeter;
}
int main()
{
int length = 5;
int breadth = 7;
cout << “Area of the Rectangle = ” << area_Rectangle(length, breadth) << endl;
cout << “Perimeter of the Rectangle = ” << perimeter_Rectangle(length, breadth);
return 0;
}
// Java program to find the power of a number class GFG { // Function to calculate N raised to the power P static int power(int N, int P) { if (P == 0) return 1; else return N * power(N, P - 1); } // Driver code public static void main(String[] args) { int N = 7; int P = 5; System.out.println(power(Read more
// Java program to find the power of a number
class GFG {
// Function to calculate N raised to the power P
static int power(int N, int P)
{
if (P == 0)
return 1;
else
return N * power(N, P – 1);
}
// Driver code
public static void main(String[] args)
{
int N = 7;
int P = 5;
Write a Program to Calculate Average of Three Numbers in C Language
//C Program to Calculate Average of Three Numbers #include <stdio.h> #include <conio.h> int main() { int n1,n2,n3; float avg; printf("\nEnter three numbers : " ); scanf("%d %d %d",&n1,&n2,&n3); avg=(n1+n2+n3)/3; printf("\nAverage of the given three numbers is : %0.2f",avg); rRead more
//C Program to Calculate Average of Three Numbers
#include <stdio.h>
#include <conio.h>
int main()
{
int n1,n2,n3;
float avg;
printf(“\nEnter three numbers : ” );
scanf(“%d %d %d”,&n1,&n2,&n3);
avg=(n1+n2+n3)/3;
printf(“\nAverage of the given three numbers is : %0.2f”,avg);
return 0;
}
#To get output download Attachment
See lessC Program to print Last Digit of a Given Number
//C program to find last digit of a given number#include <stdio.h>int main(){int number, lastdigit;printf("\n Please Enter Any Integer Number : ");scanf("%d", & number);lastdigit = number % 10;printf(" \n The Last Digit of the Given Number %d is = %d", number, lastdigit);return 0;} Read more
//C program to find last digit of a given number
#include <stdio.h>
int main()
{
int number, lastdigit;
printf(“\n Please Enter Any Integer Number : “);
scanf(“%d”, & number);
lastdigit = number % 10;
printf(” \n The Last Digit of the Given Number %d is = %d”, number, lastdigit);
return 0;
}
#To get output download Attachment
See lessLength and breadth of a rectangle are 5 and 7 respectively. Write a program to calculate the area and perimeter …
#include<bits/stdc++.h> using namespace std; int area_Rectangle(int length, int breadth) { int area = length * breadth; return area; } int perimeter_Rectangle(int length, int breadth) { int perimeter = 2*(length + breadth); return perimeter; } int main() { int length = 5; int breadth = 7; coutRead more
#include<bits/stdc++.h>
using namespace std;
int area_Rectangle(int length, int breadth)
{
int area = length * breadth;
return area;
}
int perimeter_Rectangle(int length, int breadth)
{
int perimeter = 2*(length + breadth);
return perimeter;
}
int main()
{
int length = 5;
int breadth = 7;
cout << “Area of the Rectangle = ” << area_Rectangle(length, breadth) << endl;
cout << “Perimeter of the Rectangle = ” << perimeter_Rectangle(length, breadth);
return 0;
}
#To get Output download Attachment.
See lessWrite a program to print the power of 7 raised to 5.
// Java program to find the power of a number class GFG { // Function to calculate N raised to the power P static int power(int N, int P) { if (P == 0) return 1; else return N * power(N, P - 1); } // Driver code public static void main(String[] args) { int N = 7; int P = 5; System.out.println(power(Read more
// Java program to find the power of a number
class GFG {
// Function to calculate N raised to the power P
static int power(int N, int P)
{
if (P == 0)
return 1;
else
return N * power(N, P – 1);
}
// Driver code
public static void main(String[] args)
{
int N = 7;
int P = 5;
System.out.println(power(N, P));
}
}
OUTPUT is in attachment.
See lessWrite a C/C++ program to sort a list of elements using the merge sort algorithm
Download the attachment
Download the attachment
See lessConvert the following infix expressions to their postfix equivalents: (a) A – B + C (b) A * B + C / D (c) (A – B ) + C * D / E – C (d) (A * B) + (C / D) – ( D + E) (e) ((A – B) + D / ((E + F) * G)) (f) ( A – 2 * (B + C) / D * E) + F (g) 14 / 7 * 3 – 4 + 9 / 2
Download the attachment to get answer
Download the attachment to get answer
See less