Computer Science, asked by sihhsjjs3896, 1 year ago

Using a for loop, write a program that prints out the decimal equivalents of 1/2, 1/3, 1/4,..., 1/10.

Answers

Answered by sajjad2
2
# include <iostream.h>
# include <conio.h >
void main()
{
int n,i;
for (i=1;i<=10,i++)
{
n=1/i
cout <<"decimal equivalent is"<<n <<<<"/n";
}
getch ()
}
Similar questions