Computer Science, asked by medhavi1955, 9 months ago

write a c program to check whether a no is pronic no or not

Answers

Answered by tejasvimaligi
0

Answer:

PROGRAM:

#include <stdio. h>

#include <stdbool. h>

//isPronicNumber() will determine whether a given number is pronic number or not.

bool isPronicNumber(int num){

bool flag = false;

for(int j = 1; j <= num; j++){

//Checks for pronic number by multiplying consecutive numbers.

if((j*(j+1)) == num){

Similar questions