Posts

Showing posts from February, 2018

Data Structure lab 2

                                                    LAB 02                                              Data Structure Lab              Task :1 Part 1    #include <iostream> using namespace std; void main(){        int count = 0;        int n ,flag=0;        cout << "Enter any integer: " ;        cin >> n;        for ( int i =2; i<=n-1; i++){      ...

Data Structure lab 1

Task 1: Write a Program to enter three integers and output the smallest integer using IF. #include <iostream> using namespace std; void smallest(int a,int b, int c); int main() {             int a,b,c;             cout<<"Enter 3 numbers"<<endl;             cin>>a;             cin>>b;             cin>>c;             smallest(a,b,c);             system("pause"); } void smallest(int a, int b, int c) {                         if (a...