Computer Science, asked by sampriti66, 11 months ago

Wabp to input a number from the USER and DIVIDE it by 5 and display the sum of quotation​.

Answers

Answered by 14sabari07
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