Program:
#include<stdio.h>
struct process{
Information about resetting and configuring Mobile phones (Java, Android, Symbian etc), educational articles especially for programming in C, C++ and Java and more about Computers and operating systems
#include<stdio.h> #include<malloc.h> #include<stdlib.h>
#include<stdio.h> main() {
#include<stdio.h> void main() {
#include<stdio.h> #include<conio.h> void main() {
#include<stdio.h> #include<math.h> void main() { int n,sum,r,digits; for(n=1;n<=1000;n++) { digits=0; r=n; sum=0; while(r!=0) //Counting Digits { digits++; r/=10; } r=n; while(r!=0) /*Adding Digits Raised To a Power That Is Equal To Number of Digits */ { sum+=pow((r%10),digits); r=r/10; } if(sum==n) { printf("%5d",sum); } } }
#include<stdio.h> void main() {int a[10][10],i,m,j; int det=0; printf("\nEnter the order of matrix:\n "); scanf("%i",&m); printf("\nenter elements\n"); for(i=0;i<m;i++) { for(j=0;j<m;j++) scanf("%d",&a[i][j]); } printf("\nThe matrix is\n"); for(i=0;i<m;i++) { printf("\n"); for(j=0;j<m;j++) printf("%3d",a[i][j]); } printf("\nthe transpose is\n"); for(i=0;i<m;i++) { for(j=0;j<m;j++) printf("%3i",a[j][i]); printf("\n"); } if(m==1) { det=a[0][0]; printf("det=%i",det); }