Dropdowns

प्रश्न 1. निम्नांकित सारणियों में रिक्त स्थानों की पूर्ति के लिए सारणी के नीचे चार विकल्प दिए गए हैं। जिनमें से केवल एक ही सही है। सही विकल्प चुनकर रिक्त स्थानों की पूर्ति कीजिए। 23 24 25 … 27 उत्तर-(iii) 26 प्रश्न 2. निम्नांकित सारणियों में रिक्त स्थानों की पूर्ति के लिए सारणी के नीचे […]

Math NCERT UP Board

प्रश्न 1. निम्नांकित संख्याओं को संख्यांकों में व्यक्त कीजिए : उत्तर- (i) चार सौ सत्ताईस – 427 (ii) तीन हजार पाँच सौ एक – 3501 (iii) एक सौ पन्द्रह – 115 (iv) उन्यासी हजार उनतीस – 79029 प्रश्न 2:- (अ) निम्नांकित संख्याओं को शब्दों में लिखिए : उत्तर- (i) 7019 – सात हजार उन्नीस (ii) […]

/*WAP for Prefix increment/decrement*/ #include<stdio.h> #include int main(void) { int x=8; printf(“x=%d\t”,x); printf(“x=%d\t”,++x); /*Prefix increment*/ printf(“x=%d\t”,x); printf(“x=%d\t”,–x); /*Prefix decrement*/ printf(“x=%d\n”,x); return 0; } Output: x=8 x=9 x=9 x=8 x=8

c language tutorial learn c language study c language

/*Write a Program to understand the floating point arithmetic operations */ #include<stdio.h> int main(void) { float a=12.4,b=3.8; printf(“Sum=%.2f\n”,a+b); printf(“Difference=%.2f\n”,a-b); printf(“Product=%.2f\n”,a*b); printf(“a/b=%.2f\n”,a/b); return 0; } Output: Sum=16.20 Difference=8.60 Product=47.12 a/b=3.26

c language tutorial learn c language study c language

WAP Integer arithmetic operations in C Language. /*Integer arithmetic operations in C Language*/ #include<stdio.h> int main(void) { int a=17,b=4; printf(“Sum=%d\n”,a+b); printf(“Difference=%d\n”,a-b); printf(“Product=%d\n”,a*b); printf(“Quotient=%d\n”,a/b); printf(“Remainder=%d\n”,a%b); return 0; } Output: Sum=21 Difference=13 Product=68 Quotient=4 Remainder=1

c language tutorial

WAP to find out the size and limits of data types in C Language. /*Program to find out the size and limits of data types*/ #include<stdio.h> #include<limits.h> #include<float.h> int main(void) { printf(“sizeof(char) = %u\n”,sizeof(char)); printf(“sizeof(short) = %u\n”,sizeof(short)); printf(“sizeof(int) = %u\n”,sizeof(int)); printf(“sizeof(long) = %u\n”,sizeof(long)); printf(“sizeof(float) = %u\n”,sizeof(float)); printf(“sizeof(double) = %u\n”,sizeof(double)); printf(“sizeof(long double) = %u\n”,sizeof(long double)); printf(“SCHAR_MIN […]

ICSE Computer Applications Previous Year Question Paper 2019 Solved for Class 10 General Instructions : Answers to this Paper must he written on the paper provided separately. You will not be allowed to write during the first 15 minutes. This time is to be spent in reading the Question Paper. The time given at the […]

Write a program to input the names of 15 cities sort in descending order using selection sort technique. import java.util.Scanner; public class SelectionSortString { public static void main(String[] args) { String cities[] = new String[15]; Scanner sc = new Scanner(System.in); int l = cities.length; System.out.println(“Enter 15 cities name:”); for (int i = 0; i < […]

java java string sorting string array

Two different numbers are said to be so Amicable Numbers if each sum of divisors is equal to the other number. Amicable Numbers are: (220, 284), (1184, 1210), (2620, 2924), (5020, 5564), (6232, 6368) etc. Example– 220 and 284 are Amicable Numbers. Divisors of 220 = 1, 2, 4, 5, 10, 11, 20, 22, 44, […]

Java constructor is similar to the method. It calls when an object(instance) of a class is created. Allocated in the memory when a constructor is called. It is used to initialize the object of a class. When an object is created using the new keyword, constructor is called. It calls a default constructor if there […]

java java tutorials
On this page