afaq

UP Board Class 6 Math अभ्यास – 2(c) पूर्ण संख्याएँ

अभ्यास – 2(c) पूर्ण संख्याएँ प्रश्न 1. अपनी अभ्यास पुस्तिका में गुणन-संक्रिया के प्रगुणों के आधार पर निम्नांकित कथनों में रिक्त स्थानों की पूर्ति कीजिए (पूर्ति करके)- उत्तर- (i) 468 x 0 = 0 (ii) 8976 x 5432 = 5432 x 8976 (iii) 8973 x 1 = 8973 प्रश्न 2. निम्नलिखित का गुणनफल योग्य प्रगुणों […]

UP Board Class 6 Math अभ्यास – 2(b) पूर्ण संख्याएँ

पूर्ण संख्या और प्राकृतिक संख्या में क्या अंतर है? पूर्ववर्ती संख्या क्या होती है? प्राकृत संख्या कौन सी होती है? सम्पूर्ण संख्या क्या है? छोटी प्राकृत संख्या कौन सी है? कौन सी पूर्ण संख्या प्राकृत संख्या नहीं है? परवर्ती क्या है? १ की पूर्ववर्ती संख्या क्या है? उत्तराधिकारी और पूर्ववर्ती का अर्थ क्या है? नेचुरल […]

UP Board Class 6 Math अभ्यास – 2(a) पूर्ण संख्याएँ

पूर्ण संख्या और प्राकृतिक संख्या में क्या अंतर है? पूर्ववर्ती संख्या क्या होती है? प्राकृत संख्या कौन सी होती है? सम्पूर्ण संख्या क्या है? छोटी प्राकृत संख्या कौन सी है? कौन सी पूर्ण संख्या प्राकृत संख्या नहीं है? परवर्ती क्या है? १ की पूर्ववर्ती संख्या क्या है? उत्तराधिकारी और पूर्ववर्ती का अर्थ क्या है? नेचुरल […]

BODMAS expressions Program in C

/*P4.12 Program to evaluate some expressions*/ int main(void) { int a,b,c,d,e,f,g,h,k; a=8, b=4, c=2, d=1, e=5, f=20; printf(“%d\t”, a+b-(c+d)*3%e+f/9); a=17, b=5, c=6, d=3, e=5; printf(“%d\t”,a%6-b/2+(c*d-5)/e); a=4, b=5, c=6, d=3, e=5, f=10; printf(“%d\t”,a*b-c/d

use of cast operator Program in C

/*P4.11 Program to illustrate the use of cast operator*/ #include<stdio.h> int main(void) { int x=5,y=2; float p,q; p=x/y; printf(“p=%f\n”,p); q=(float)x/y; printf(“q=%f\n”,q); return 0; } Output: p=2.000000 q=2.500000

Type conversion in assignment Program in C

/*P4.10 Program to understand type conversion in assignment*/ #include<stdio.h> int main(void) { char c1,c2; int i1,i2; float f1,f2; c1=’H’; i1=80.56; /*float converted to int, only 80 assigned to i1 */ f1=12.6; c2=i1; /*int converted to char */ i2=f1; /*float converted to int */ /*Now c2 has the character with ASCII value 80, i2 is assigned […]

sizeof operator Program in C

/*Program to understand the sizeof operator*/ #include<stdio.h> int main(void) { int var; printf(“Size of int=%u\n”,sizeof(int)); printf(“Size of float=%u\n”,sizeof(float)); printf(“Size of var=%u\n”,sizeof(var)); printf(“Size of an integer constant=%u\n”,sizeof(45)); return 0; } Output: Size of int=4 Size of float=4 Size of var=4 Size of an integer constant=4

Comma operator Program in C

/*Program to understand the use of comma operator*/ #include<stdio.h> int main(void) { int a,b,c,sum; sum = (a=8,b=7,c=9,a+b+c); printf(“Sum=%d\n”,sum); return 0; } Output: Sum=24

Print the larger of two numbers using conditional operator Program in C

/*Program to print the larger of two numbers using conditional operator */ #include<stdio.h> int main(void) { int a,b,max; printf(“Enter values for a and b :”); scanf(“%d%d”,&a,&b); max = a>b ? a : b; /*ternary operator*/ printf(“Larger of %d and %d is %d\n”,a,b,max); return 0; } Output: Enter values for a and b :5 7 Larger […]

Relational operators Program in C

/*Program to understand the use of relational operators*/ #include<stdio.h> int main(void) { int a,b ; printf(“Enter values for a and b : “); scanf(“%d%d”,&a,&b); if(a<b) printf(“%d is less than %d\n”,a,b); if(a<=b) printf(“%d is less than or equal to %d\n”,a,b); if(a==b) printf(“%d is equal to %d\n”,a,b); if(a!=b) printf(“%d is not equal to %d\n”,a,b); if(a>b) printf(“%d is […]

1 7 8 9 10 11 36