Blog Detail
Hmmm
http://gopal1035.blogspot.com/
Documentaries, interesting articles, technical stuff, opinion, photos, videos and reviews, mobile blog with occasional personal posts thrown in.
Recent Posts
WAP to display the following simple arithmetic calculator:
//E Balagurusamy, Programming In ANSI C,4E //Exercise 1.15, page 22 //in this problem, only to display //the simple calculator #include <stdio.h> int main (void) { printf("\n\n"); printf("x...
WAP to display the equation of a line in the form ax + by = c, for a=5, b=8, c=18.
//E Balagurusamy, Programming In ANSI C,4E //Exercise 1.14, page 22 #include <stdio.h> #define a 5 #define b 8 #define c 18 int main(void) { printf("\n\n"); printf("%dx + %dy = %d"...
WAP- The line joining the points (2,2) and (5,6) which lie on the circumference of the circle is the diameter of the circle. Write a program to compute the area of the circle.
//E Balagurusamy, Programming In ANSI C,4E //Exercise 1.13, page 22 #include <stdio.h> #include <math.h> #define PI 3.14 //point 1 #define x1 2 #define y1 2 //point 2 #define x2 5 #define y2 6 int main(void) {int...
WAP- A point on the circumference of a circle whose center is (0,0) is (4,5). Write a program to computer perimeter and area of the circle.
(Hint: use the formula of distance between two points) coming soon Credits: Originally published at gopal1035.info by Gopal Aggarwal ...
WAP- Distance between two points (x1,y1) and (x2,y2) is governed by the following formula D=sqrt((x2-x1)^2 + (y2-y1)^2). Write a program to computer D given the coordinates of the points.
//E Balagurusamy, Programming In ANSI C,4E //Exercise 1.11, page 22 #include <stdio.h> //point 1 #define x1 5 #define y1 2 //point 2 #define x2 14 #define y2 7 int main(void) {int term1, term2,D; printf("\n\n"...
WAP- Area of a triangle is given by the formula A=sqrt(S(S-a)(S-b)(S-c)), where a, b and c are sides of the triangle and 2S=a+b+c. Write a program to compute the area of the triangle given the values of a, b and c.
//E Balagurusamy, Programming In ANSI C,4E //Exercise 1.10, page 22 #include <stdio.h> #include <math.h> #define a 10 #define b 10 #define c 10 int main(void) {float S,area; printf("\n\n"); S=(a+b+c)/2; a...

