Skip to main content
Post Closed as "Duplicate" by BDL, phuclv, anastaciu
Improved sentience structure, simplified example code
Source Link

How to print fraction in cC

I had a problem trying to print thea fraction in C programming and i want to know how i. How I can print the fraction as the number I defined below. Here is my code:

#include<stdio.h> int main() {  printf("%.4f\n",(278 - 125)153/400);  return 0; } 

Any help will appreciated.

How to print fraction in c

I had a problem to print the fraction in C programming and i want to know how i can print the fraction as the number I defined below. Here is my code:

#include<stdio.h> int main() { printf("%.4f\n",(278 - 125)/400); return 0; } 

Any help will appreciated.

How to print fraction in C

I had a problem trying to print a fraction in C. How I can print the fraction as the number I defined below. Here is my code:

#include<stdio.h> int main() {  printf("%.4f\n", 153/400);  return 0; } 

Any help will appreciated.

Source Link

How to print fraction in c

I had a problem to print the fraction in C programming and i want to know how i can print the fraction as the number I defined below. Here is my code:

#include<stdio.h> int main() { printf("%.4f\n",(278 - 125)/400); return 0; } 

Any help will appreciated.