Hi!
.........................
if(...)
.....
else if(...)
.......
else
return a string.
after compiling and running the print out is=(AAAAAAAA8.00)
How can my program print out the String (AAAAAAAA) without 8.00
Code:
#include<stdio.h>
double my_program(double A, double B);
int main(){
double C=20;
double D=2;
printf("%.2f\n", my_program(C,D));
return 0;
}
double my_program(double A, double B){
double new_v;
if(A<=2.0)
{
return B;
}
else if(A >2 && A<15)
{
new_v=(2+(A*3));
return new_v;
}
else
return printf("AAAAAAAA");
}