how do you write 1/N in C to output a float number. if you divide it?



The author posted a question in Programming

how do you write 1/N in C to output a float number. if you divide it? and got a better answer

Response from

Response from 0[+++++]
1.0 N should be considered a real expression in this case if it doesn't work try 1 N *1.0

 

To answer the question:

Name*

E-mail:*

Reply text:*
Verification code (enter 22):*