Upload
no-company
View
45
Download
4
Embed Size (px)
Citation preview
LAB 1
LAB2
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();
}
LAB 4
LAB 5 ‘
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(); }
LAB7
LAB 8
LAB9
LAB 10