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 all prime no.(1-100).
What are the propositions of Putnam’s model?
Write a C program to transpose of a matrix.
Write a C program to find sum of digit of any no.
Briefly discuss about Critical Path Method (CPM)