Given The Length And Breadth Of A Rectangle, Write A Program To Find Whether The Area Of The Rectangle Is Greater Than Its Perimeter #include<stdio.h> int main() { int length,breadth,area,perimeter,dif; printf("Enter a your length and breadth of a ... Code Guru February 27, 2019 0
write a program to receive value of latitude(l1 and l2) and longitude (g1, g2), in degrees, of two places on the earth and output the distance (d) between them in nautical mile. the formula for distance in nautical mile is #include<stdio.h> #include<stdlib.h> #include<math.h> int main() { float lat1, lat2, lon1, lon2, d; printf(... Code Guru February 22, 2019 1
Write a program to receive cartesian co-ordinates (x,y) of an point and convert them into polar co-ordinates (r,o) #include<stdio.h> #include<math.h> int main() { int x,y; float r,theta; printf("enter the value of coordinate ... Code Guru February 22, 2019 0
If length of three sides of a triangle of a triangle are input through the keyboard, Write a program to find the area of the triangle. #include <stdio.h> #include <math.h> int main() { int s, sidea, sideb, sidec, area; printf("Enter the side ... Code Guru February 22, 2019 0
If a Five-Digit number is input through the Keyboard, Write a program to reverse the number. #include<stdio.h> int main() { long num,a,b,c,d,e,rev; printf("Enter a five digit number\n"); scanf("%ld"... Code Guru February 22, 2019 0
any integer is input through the keyboard. Write a program to find out whether it is an odd number or even number. #include<stdio.h> int main() { int num,tr; printf("Enter your number "); scanf("%d",&num); ... Code Guru February 21, 2019 0
The Length & Breadth Of A Rectangle And Radius Of A Circle Are Input Through The Keyboard. Write A Program To Calculate The Area & Perimeter Of The Rectangle, And The Area & Circumference Of The Circle. #include<stdio.h> int main() { int length,breadth,r; float area, perimeter, areac,cc; printf("Enter the Length... Code Guru February 21, 2019 0
Temperature of a city in fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into in each subject is 100. #include<stdio.h> int main() { float temperature, centigrade; printf("Enter the temperature of your city in fahrenhe... Code Guru February 21, 2019 0
Consider a currency system in which there are notes of seven denominations, namely, Rs 1, Rs 2, Rs 5, Rs 10, Rs 50, Rs 100. if a sum of Rs N is entered through the keyboard, write a program to compute the smallest number of notes that will combine to give Rs. N. #include<stdio.h> int main() { int rs, a, b, c, d, e, f, g, h; printf("Enter the amount in Rupees : "); scanf(... Code Guru February 20, 2019 0
Two numbers are input through the keyboard into two locations C and D. write a program to interchange the content of C and D. #include<stdio.h> int main() { int c,d; printf("Enter your c value \n"); scanf("%d",&c); ... Code Guru February 20, 2019 4
if value of an angle is input through the keyboard, write a program to print all its trigonometric ratios. #include <stdio.h> int main() { int x,y,z; printf("Enter two angles of triangle: "); scanf("%d%d... Code Guru February 20, 2019 0
wind chill factor is the felt air temperature on exposed skin due to wind. the wind chill temperature is always low than the air temperature, and is calculated as per the following formula: #include<stdio.h> #include<math.h> int main() { int t,v; float wcf; printf("Enter Temperature and Veloci... Code Guru February 20, 2019 0
If the marks obtained by a student in five different subject are input through the keyword, write a program to find out the aggregate marks and percentage marks obtained by the student. assume that the maximum marks that can be obtained by a student in each subject is 100. Code Guru February 20, 2019 0
The distance between two cities (in km) is input through the keyboard. Write a program to convert and print this distance in meters, feet, inches and centimeters. #include<stdio.h> int main() { int distance,meter,centimeter; printf("Enter the distance between two cities \n The d... Code Guru February 17, 2019 0
Ramesh's basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary. #include<stdio.h> int main() { int salary; float basic,rate,sum; printf("Enter your basic salary")... Code Guru February 17, 2019 0