Computer Science, asked by amitmishragaura04, 8 months ago

Matthieu is an expert in
Mathematics. He is performing
arithmetic operations and wants to
find all the divisors of P number.
Note: Divisors should be separated by
space and increasing order should be
maintained.
Input Format
Input contains a non-negative integer
'P' denoting the number

Violation of Input criteria:
System should display message as
"Wrong Input".
Output Format
All divisors should be separated by
space and increasing order must be
maintained
Constraints
1 <=P<=10^8

Sample 1:
Input
10

Output
1 2 5 10
Sample 2:
Input
18
Output
1 2 3 6 9 18​

Answers

Answered by jainluvdeep1
0

Answer:

pls mark as brainlest

Explanation:

C follows universal syntax for if..else. You can use any complier GNU Linux gcc or UNIX or old good TC.

if..else syntax

General if..else syntax is as follows:

if ( condition ) {

expr_set1;

}

else {

expr_set2;

}

If given condition is TRUE, expr_set1 will get executed.

If given condition is FALSE (not TRUE), expr_set2 will get executed.

Similar questions