How to calculate the area of rectangle in C

1 Answer

0 votes
#include <stdio.h>

int main(void) {
    int width = 7;  
    int height = 13;  
    
    int area = width * height;  
    
    printf("Area = %d", area);  
}




/*
run:

Area = 91

*/

 



answered Jul 11, 2021 by avibootz

Related questions

1 answer 174 views
1 answer 128 views
2 answers 295 views
1 answer 214 views
1 answer 189 views
...