Area of rectangle

Program:

#include<stdio.h>
int main()
{
int l,w,a;
printf("Enter Length: ");
scanf("%d",&l);
printf("Enter Width: ");
scanf("%d",&w);
a=l*w;
printf("Area of Rectangle: %d\n",a);
return 0;

}

Output:


No comments:

Post a Comment

x^y using recursion

Program: #include<stdio.h> int power(int a,int b); int main() { int x,y,ans; printf("Enter x and y:\n "); scanf(...