write a program to generate 1st n fibonacci prime number
Answer Posted / subhabrato das
/*program to calculate lcm of 2 integers*/
#include"stdio.h"
#include"conio.h"
int lcm(int,int);
void main()
{
int a,b,lcm;
printf("Enter two integers...\n");
scanf("%d %d",&a,&b);
lcm=(a,b);
printf("\n\nLCM=%d",lcm);
}
int lcm(int a,int b)
{
int lcm;
int i=1;
while(1)
{
r=a*i;
if(r%b==0)
{
return r;
}
i++
}
}
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Why c is procedure oriented?
FILE PROGRAMMING
what is the significance of static storage class specifier?
Why doesnt the call scanf work?
Which is better pointer or array?
How can a program be made to print the name of a source file where an error occurs?
How can I trap or ignore keyboard interrupts like control-c?
Do pointers store the address of value or the actual value of a variable?
Explain is it valid to address one element beyond the end of an array?
What is identifiers in c with examples?
Write a program to print all permutations of a given string.
What is fflush() function?
Explain two-dimensional array.
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.