How to calculate the area of rectangle in C++

1 Answer

0 votes
#include <iostream>

int main() {
    int width = 7;  
    int height = 13;  
     
    int area = width * height;  

    std::cout << "Area = " << area;
}




/*
run:
 
Area = 91
 
*/

 



answered Jul 11, 2021 by avibootz
...