Recent Posts

9-latest-250px-course

Write a C program for Area and Perimeter of Rectangle

Write a C program for Area and Perimeter of Rectangle




Program:-     

#include <stdio.h>

#include <conio.h>

   void main()

{

int a,b, A,P;

clrscr();

printf("Enter the value of a and b");

scanf("%d%d",&a,&b);

A=a*b;

P=2(a+b);

printf("%d%d",A,P);

getch();

}

Output:-

input:-
Enter the value of a, b
a=10
b=2
output:-
20
24
SHARE

Milan Tomic

Hi. I’m Designer of Blog Magic. I’m CEO/Founder of ThemeXpose. I’m Creative Art Director, Web Designer, UI/UX Designer, Interaction Designer, Industrial Designer, Web Developer, Business Enthusiast, StartUp Enthusiast, Speaker, Writer and Photographer. Inspired to make things looks better.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment