#include<stdio.h>
int main()
{
int l,b,area;
printf("Enter the length : ");
scanf("%d", &l);
printf("Enter the breadth : ");
scanf("%d", &b);
area = l*b;
printf("The area of the rectangle : %d", area);
return 0;
}
Ismail Super Market(2nd Floor), Anowara, Chittagong. Contact: 01812754700, 01835889444.
Showing posts with label C Programming. Show all posts
Showing posts with label C Programming. Show all posts
Thursday, January 25, 2018
আয়তক্ষেত্রের ক্ষেত্রফল বের করার প্রোগ্রাম।
ত্রিভুজের ক্ষেত্রফল বের করার প্রোগ্রাম।
#include<stdio.h>
int main()
{
float b,h,area;
printf("Enter the base : ");
scanf("%f", &b);
printf("Enter the height : ");
scanf("%f", &h);
area = (b*h)/2.0;
printf("Area of the triangle : %f", area);
return 0;
}
Subscribe to:
Posts (Atom)