write a c program to check whether a no is pronic no or not
Answers
Answered by
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
Science,
4 months ago
Environmental Sciences,
4 months ago
Geography,
9 months ago
Business Studies,
1 year ago
Business Studies,
1 year ago