Write a program to check whether the number is prime and also
check if it there i n fibonacci series, then return true
otherwise return false
Answer / surendra
include<stdio.h>
int main(){
int k,r;
long int i=0l,j=1,f;
//Taking maximum numbers form user
printf("Enter the number range:");
scanf("%d",&r);
printf("FIBONACCI SERIES: ");
printf("%ld %ld",i,j); //printing firts two values.
for(k=2;k<r;k++){
f=i+j;
i=j;
j=f;
printf(" %ld",j);
}
return 0;
}
| Is This Answer Correct ? | 3 Yes | 4 No |
main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;
All the combinations of prime numbers whose sum gives 32
main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }
Find your day from your DOB?
15 Answers Accenture, Microsoft,
main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("\n %u %u ",j,k); }
#define a 10 void foo() { #undef a #define a 50 } int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } explain the answer
main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }
29 Answers IBM, TCS, UGC NET, Wipro,
‎#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }
source code for delete data in array for c
prog. to produce 1 2 3 4 5 6 7 8 9 10
what is the code of the output of print the 10 fibonacci number series
Finding a number multiplication of 8 with out using arithmetic operator