Object Oriented Programming System (OOPS)
The key features of OOPS concept are: 1. Object 2. Class 3. Data Encapsulation 4. Data Abstraction 5. Inheritance 6. Polymorphism 1.Object - This is the basic unit of OOPS.…
The key features of OOPS concept are: 1. Object 2. Class 3. Data Encapsulation 4. Data Abstraction 5. Inheritance 6. Polymorphism 1.Object - This is the basic unit of OOPS.…
This program will ask the user to input a string of maximum 40 characters and then it will count vowels in the given string. #include<iostream.h> #include<conio.h> #include<stdio.h> void main() {…
This program will accept birthyear and birth month from the user and also accept the current year and current month, according to the given input this program will calculate the…
This program will accept item name, quantity and rate and then it will calculate the total amount by multiplying "q" and "r". Then the program will calculate discount in the…
Structure: the structure is a group of different data types. In this program, there is a structure called "student" it contains rollno, name, marks of five subjects. These are different…
Array (single dimensional array) : An array is a group of elements of same data types. This program will accept 5 subject marks and it will store them into an…
In this program, the user is asked to enter two numbers which are stored in a and b respectively. The + operator is used for adding these two numbers and…
The break statement is used to terminate the loop. In this program, if the value is equal to 6 then the loop will be terminated and the statement will be…
#include<stdio.h> #include<conio.h> void main() { int i,j,k; clrscr(); for(i=1;i<=5;i++) { for(k=1;k<=5-i;k++) { printf(" "); } for(j=1;j<=i;j++) { printf(" *"); } printf("\n"); } for(i=4;i>=1;i--) { for(k=1;k<=5-i;k++) { printf(" "); } for(j=1;j<=i;j++) …
A simple program to swap two numbers without using the third variable. You have to use some formulas or basic concepts. #include<stdio.h> #include<conio.h> void main() { int a,b; clrscr(); printf("enter…