Wabp to input a number from the USER and DIVIDE it by 5 and display the sum of quotation.
Answers
Answered by
2
Answer:
Import java.util.*
class Divide
{
void Main();
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter A Number");
int n=sc.nextInt();
int d=(double)n/5;
int n1;int n2=0
while(d>0)
{
n1=d%10;
n2=n2+n1;
d=d/10;
}
System.out.println("The Sum Of The Quotient Of The Number Is\t"+n2);
}
}
Similar questions
Accountancy,
5 months ago
India Languages,
5 months ago
English,
11 months ago
History,
11 months ago
Social Sciences,
1 year ago
Science,
1 year ago