/*mycfiles.wordpress.com To Calculate Sum & Average of 4 no.*/ #include<stdio.h> #include<conio.h> void main() { float a,b,c,d,sum,avg; clrscr(); printf("Enter the 4 nos.\n\n"); scanf("%f%f%f%f",&a,&b,&c,&d); sum=a+b+c+d; avg=(a+b+c+d)/4; printf("\nSum is= %f\nAverage is= %f",sum,avg); getch(); }
6
#includeint main(){int num, r, sum=0, temp;print f("enter a number:");scan f("%d",&num);temp=num;while(n!=0){r=num%10;num=num/10;sum=sum*10+r;}if(temp==sum)print f("%d is a palindrome",temp);elseprint f("%d is not a palindrome",temp);return 0;}
#include#includeint a,f,n,sum=0; printf("Enter any number"); scanf("%d",&n); f=1; for(a=1;a<=n;a ); { f=f*a; } for(f=1;f<=n;f ); { sum=sum f; } printf("sumation of factorial numbers :",sum); getch(); }
Expressed as a sum in hexadecimal form, F + D = 1C.
One linear equation: Ax + By = C (A, B, and C are constants) Another linear equation: Dx + Ey = F (D, E, and F are constants) Their sum: (A+D)x + (B+E)y = (C + F) The coefficients (A+D), (B+E), and (C+F) are still constants, so the sum is still a linear equation.
Unless the values of the things will no be know things, then the sum will also not be known
c# d# f# g# a# g# f# f# f# f# f# d# c# d# f# g# a# g# f# f# f# f# f# d# f f f f f f f d# c# c# c# d# d# d# c# f f f f f f f d# c# c# c# d# d# d# c# a# a# c# d# a# a# c# d# f f f f f f f d# c# c# c# d# d# d# c# f f f f f f f d# c# c# c# d# d# d# c#
c# d# f# g# a# g# f# f# f# f# f# d# c# d# f# g# a# g# f# f# f# f# f# d# f f f f f f f d# c# c# c# d# d# d# c# f f f f f f f d# c# c# c# d# d# d# c# a# a# c# d# a# a# c# d# f f f f f f f d# c# c# c# d# d# d# c# f f f f f f f d# c# c# c# d# d# d# c#
d e f# f# f# d e f# f# d e f# a g f# f# e f# d d e f# f# e d d b f# e d d a d d a d e f# d a d e f# f#
#include<stdio.h> int main(){ int num,i,f,r,sum=0,temp; printf("Enter a number: "); scanf("%d",&num); temp=num; while(num){ i=1,f=1; r=num%10; while(i<=r){ f=f*i; i++; } sum=sum+f; num=num/10; } if(sum==temp) printf("%d is a strong number",temp); else printf("%d is not a strong number",temp); return 0; }
D f d# d f d# e f e f e c a a d g a a d f g e d f d# d f d# e f e f e c a a d f g a a d