1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| #include <stdio.h>
main()
{
int num1, num2;
int p, a, s;
clrscr();
printf("Enter perimeter: ");
scanf("%d",&num1);
printf("Enter area: ");
scanf("%d",&num2);
p=4*s;
a=s^2;
printf("\nThe perimeter is: %d", p);
printf("\nThe area is: %d", a);
getch();
}
| |
No comments:
Post a Comment