Doubtly
@Doubtly · Joined Feb 2021
- Answers
- 3,792
- Questions
- 4,033
- Upvotes received
- 427
- Which of the following is less general in characters as compared to genus (1) Species (2) Family (1) Species is correct option 2
- An attribute found in plants but not animals is (1) Metabolism (2) Sexual reproduction (3) Autotrophy (3) Autotrophy is correct option information: {An autotroph is an organism that can produce its own food using light, water, carbon dioxide,... 1
- The BCD equivalent of a decimal number 88 is ........... Correct option is c) 1000 1000 2
- To write C++ Program using operators // Program to perform given operation on two input integers #include<iostream.h> { void main() { int a, b, c, d, e; char oper; float f; cout... 2
- what are c++ comments ? The C++ comments are statements that are not executed by the compiler. The comments in C++ programming can be used to provide explanation of... 1
- Turbo c++ is not installing in laptop windows 10 Turbo c++ is not installing in laptop windows 10 You can run your c++ programs on online gdb turbo c++ compiler which is web based c++ compi... 1
- To study structure of c++ program //following is the simple C++ program . #include<iostream.h> void main() { cout<<"C++ better than C"; } Output:: https://lh3.googleuserconte... 1
- Write an Object Oriented Program in C++, to implement circle class to find area and circumference of a circle using functions void area(), void circum(). #include<iostream> using namespace std; class Circle { public: float radius, area_of_circle,circumference; void getRadius() { cout << "Enter... 1
- Write an Object Oriented Program in C++, to find the GCD of two given numbers. 225 and 45 #include <iostream> using namespace std; int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } int main() { int a = 225, b =... 2
- Write an Object Oriented Program in C++, to implement inventory class to calculate total price of number of items purchased. #include <iostream> using namespace std; class inventory { private: int no_of_items; float total_price; float price; public: void getData(vo... 1
- Write a program in C++, to find factorial of a given number using function void fact (int); #include <iostream> #include <conio.h> using namespace std; void fact(int num); int main(void) int num; cout<<"Enter the number to find fact... 1
- Write a program in C++, to read array of 10 elements and print its sum. #include<iostream> using namespace std; int main() { int arr[10],i,sum=0; cout<<"Enter any elements in Array: "; for(i=0;i<10;i++) { cin>>ar... 1
- Write a program in C++, to print first 15 terms of Fibonacci series Note:: This code only work on turbo c++ #include<iostream.h> #include<conio.h> void main() { int n1,n2,n,i; clrscr(); n1=0; n2=1; cout<<"Fib... 1
- Write a program in C++, to print the sum of first 100 natural numbers using for control structure. #include <iostream> using namespace std; int main() { int i, sum=0; for(i=1;i<=100;i++) { sum=sum+i; } cout<<"Sum of first 100 natural numbe... 1
- Write a program in C++, to find factorial of a given number using for loop. #include <iostream> using namespace std; int main() { int i,fact=1,number; cout<<"Enter any positive Number: "; cin>>number; for(i=1;i<=numb... 1
- Write a program in C++, to find if the given year is leap year or not using if else control structure. #include <iostream> using namespace std; int main() { int year; cout << "Enter a year to check: "; cin >> year; if (year % 4 == 0) { if (yea... 1
- Write a program in C++, to find maximum and minimum of two numbers using conditional operator. #include<iostream> using namespace std; int main() { int num1, num2, max, min; cout<<"Enter two numbers:"; cin>>num1>>num2; max = (num1 > nu... 1
- Write a program in C++, to find max of two numbers using if else control structure. #include<iostream> using namespace std; int main() int num1, num2, max_no; cout<<"Enter the Two Numbers: "; cin>>num1>>num2; if(num1>num2) m... 2