Write a C program to convert decimal no. to binary.
#include<stdio.h> #include<conio.h> main() { int bin[50],i=0,n,j; printf("\n Enter any decimal number"); scanf("%d",&n); while(n>0) { bin[i]=n%2; n=n/2; i++; } for(j=i-1;j>=0;j--) { printf(" %d ",bin[j]); } getch(); }
Output:
Write a C program to print the following output.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
What is “Top-Down and Bottom-Up Design” approach?
Explain the LOC, Function point and Feature point?
Write a C program to check a year is leap year or not.
What is feasibility study? Explain different types of feasibility study.
Write a C program to find a no. is PALINDROME or NOT.