Powered by Blogger.

Translate

Tuesday, June 26, 2012

Home » » programing language

programing language

//program to find area of circle
#include<stdio.h>
#include<conio.h>
main()
{
      int r,a,l,b;
      printf("Enter the leanth of rectangle :");
      scanf("%d",&l);
      printf("Enter the breadth of rectangle:");
      scanf("%d",&b);
     
      a=l*b;
      r=2*(l+b);
      printf("\n\n\n\nThe area of rectangle is:%d\n",a);
      printf("the  perimeter of circle:%d",r);
     
      fflush(stdin);
      getchar();
      }
     
     
Share this games :

0 comments:

Post a Comment