11
LAB 1

LAB PROJECT

Embed Size (px)

Citation preview

Page 1: LAB PROJECT

LAB 1

Page 2: LAB PROJECT

LAB2

Page 3: LAB PROJECT

LAB 3

#include<iostream.h>#include <conio.h>void main(){ clrscr(); int number,digit; cout<<"please enter 4_digit number:"; cin >> number; digit=number %10; cout<<"the digits are:"; cout<<digit<<","; number=number/10; digit=number%10; cout<<digit<<","; number=number/10; digit=number%10; cout<<digit<<",";digit=number%10; cout<<digit; getch();

}

Page 4: LAB PROJECT

LAB 4

Page 5: LAB PROJECT

LAB 5 ‘

Page 6: LAB PROJECT

LAB6

#include<iostream.h>#include<conio.h>void main() {

clrscr(); int trynum=0 ;

char c; do

{

cout<<"check the entered charc between a to z : "; cin>>c; if(c=='z') { cout<< " congratulation ,your guess is correct"; trynum=6; } else { trynum=trynum+1; } } while(trynum<=5); getch(); }

Page 7: LAB PROJECT

LAB7

Page 8: LAB PROJECT

LAB 8

Page 9: LAB PROJECT

LAB9

Page 10: LAB PROJECT

LAB 10