#include<stdio.h> int main(void) { double n,y; printf("Enter n:"); scanf_s("%lf",&n); if(n<=50){ y=n*0.53; } else if(n>50){ y=n*0.58; } printf("f(%.2f)=%.2f ",n,y); return 0; }
#include<stdio.h> int main(void) { double n,y; printf("Enter n:"); scanf_s("%lf",&n); if(n<=50){ y=n*0.53; } else if(n>50){ y=n*0.58; } printf("f(%.2f)=%.2f ",n,y); return 0; }