How to print double without the decimal places in C

1 Answer

0 votes
#include <stdio.h>

int main() {
    double number = 28374092.401;
    
    printf("%.0lf\n", number);
    
    return 0;
}



/*
run:

28374092

*/

 



answered Nov 9, 2024 by avibootz

Related questions

...