diamond pattern


#include <stdio.h>int main() {    int n, i, j;    printf("Enter the number of rows (odd): ");    scanf("%d", &n);    for (i = 1; i <= n; i += 2) {        for (j = 1; j <= (n - i) / 2; j++) {            printf(" ");        }        for (j = 1; j <= i; j++) {            printf("*");        }        printf("\n");    }    for (i = n - 2; i >= 1; i -= 2) {        for (j = 1; j <= (n - i) / 2; j++) {            printf(" ");        }        for (j = 1; j <= i; j++) {            printf("*");        }        printf("\n");    }    return 0;}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Types of Inheritance:* Single inheritance, multiple inheritance, multilevel inheritance, hierarchical inheritance.*Private, Public, and Protected (in OOP):*
- *Private:* Accessible only within the class where it's declared.
- *Public:* Accessible from outside the class.
- *Protected:* Accessible within the class and its subclasses.*Pointer:* A variable that stores the memory address of another variable.cpp
#include <iostream>
using namespace std;int main() {
   for (int i = 1; i <= 10; ++i) {
       cout << i << " ";
   }
   return 0;
}
*Area of Circle Flowchart:* (No graphical capability to draw a flowchart, but it typically includes steps to input radius, calculate area using the formula πr², and output the result.)*Array:* A collection of elements of the same data type stored in contiguous memory locations.*Difference between Array and Structure:* Arrays store homogeneous elements, while structures store heterogeneous elements.*Data Member and Member Function:* Data members are variables within a class, and member functions are methods or functions within a class.*Polymorphism:* The ability of a function to take different forms based on the object it's acting upon, such as function overloading and overriding.*Class:* A blueprint defining the properties and behaviors of objects in object-oriented programming.[09-12-2023 09:17] +91 77699 79043: 1. *Single Inheritance:* A derived class inherits from only one base class.
2. *Multiple Inheritance:* A derived class inherits from multiple base classes.
3. *Multilevel Inheritance:* A class inherits from another derived class, forming a chain of inheritance.
4. *Hierarchical Inheritance:* Multiple derived classes inherit from a single base class.

cpa practical and skill link :
https://drive.google.com/drive/folders/1RmnJQrbDF5T00qJiPSRVFONNKz2b3JZu?usp=sharing

objec oriented prog
https://drive.google.com/file/d/11PzUZd7PhZZ2DB70qXXVWM5F0P7HDP-h/view?usp=sharing


code >>>> inheritance and polymorphism
https://drive.google.com/file/d/1n2ib5GOXlRMI7DsHGp9PNHDw3DWNBgHB/view?usp=sharing

link code .... unit 6
https://docs.google.com/presentation/d/1iCP7SaXRUUClyN3OtNCkr2oNrhIn2_2B/edit?usp=sharing&ouid=109566671381413410140&rtpof=true&sd=true

link code u5

code >>>
https://docs.google.com/presentation/d/1yp9Cx9K6dSkrebShVyTMAt2eg2Alyh_0/edit?usp=sharing&ouid=109566671381413410140&rtpof=true&sd=true

link code u4
https://docs.google.com/presentation/d/1kGMh-1CCks4WqcAV6WBwNruEbA7XQroX/edit?usp=sharing&ouid=109566671381413410140&rtpof=true&sd=true



link code u3

https://docs.google.com/presentation/d/1kGMh-1CCks4WqcAV6WBwNruEbA7XQroX/edit?usp=sharing&ouid=109566671381413410140&rtpof=true&sd=true

link u2
https://docs.google.com/presentation/d/1KAwMhp7d26HmdOeZdNMTJhAef7liAnUJ/edit?usp=sharing&ouid=109566671381413410140&rtpof=true&sd=true


link u1 ;
https://docs.google.com/presentation/d/16QTao4dwdpBri11TNGXoYfZqucenkruE/edit?usp=sharing&ouid=109566671381413410140&rtpof=true&sd=true
1.2
https://docs.google.com/presentation/d/1iDtiQqc50h4LO7iz68D3YE0TP8C91RHw/edit?usp=sharing&ouid=109566671381413410140&rtpof=true&sd=true
1.3
https://docs.google.com/presentation/d/1iDtiQqc50h4LO7iz68D3YE0TP8C91RHw/edit?usp=sharing&ouid=109566671381413410140&rtpof=true&sd=true



classroom link

https://classroom.google.com/c/NjE4Mjc5NDk3ODY1/p/NTIzNDY5NjUzMDI3/details


c prog to print electricity bill
#include <stdio.h>int main() {    float units, billAmount;    printf ("\nPRN : 2301106161\n");    printf ("\natharv mane\n");    printf("Enter the units consumed (in kWh): ");    scanf("%f", &units);    if (units <= 50) {        billAmount = units * 3.00;    } else if (units <= 100) {        billAmount = 50 * 3.00 + (units - 50) * 4.50;    } else if (units <= 200) {        billAmount = 50 * 3.00 + 50 * 4.50 + (units - 100) * 6.00;    } else {        billAmount = 50 * 3.00 + 50 * 4.50 + 100 * 6.00 + (units - 200) * 7.50;    }    printf("\nElectricity Bill\n");    printf("Units Consumed: %.2f kWh\n", units);    printf("Bill Amount: Rs %.2f\n", billAmount);    return 0;}
Get a 30-minute, no-cost strategy session with a cyber expert.
Speak with our experts to discover the next steps of your journey
Let's Talk

alphabetical order



#include <stdio.h>int main() {    int n, i, j;    printf("Enter the number of rows: ");    scanf("%d", &n);    for (i = 1; i <= n; i++) {        char ch = 'A';        for (j = 1; j <= i; j++) {            printf("%c ", ch);            ch++;        }        printf("\n");    }    return 0;}

diamond pattern


#include <stdio.h>int main() {    int n, i, j;    printf("Enter the number of rows (odd): ");    scanf("%d", &n);    for (i = 1; i <= n; i += 2) {        for (j = 1; j <= (n - i) / 2; j++) {            printf(" ");        }        for (j = 1; j <= i; j++) {            printf("*");        }        printf("\n");    }    for (i = n - 2; i >= 1; i -= 2) {        for (j = 1; j <= (n - i) / 2; j++) {            printf(" ");        }        for (j = 1; j <= i; j++) {            printf("*");        }        printf("\n");    }    return 0;}