[Solved] The function is not returning in clang


Actually, the function returns a value. Maybe you want to see it, so just print the result:

#include <stdio.h>
#include <cs50.h>

int calcrectarea(int len,int wid){
    return len*wid;
}

int main(){        
    printf("enter length here:\n");         
    int x; scanf("%d",&x);

    printf("enter width here:\n");
    int y; scanf("%d", &y);

    printf("area is: %d", calcrectarea(x,y));           
}

solved The function is not returning in clang