Sie sind auf Seite 1von 4

NFC Institute of Engineering & Technology, Multan Lab manual

Department of Chemical Engineering C++

Lab10: For Loop Computer Programme

Name: Abdur Rahim


Roll No. : 2k13-ChE-47 Dated: 16,11,2015

LAB POINTS SCORED

Lab Performance: (10) 0 1 2 3 4 5


Lab Participation

Lab Activity Completion

Lab Submission: (20) 0 1 2 3 4 5


In-Time Submission

Accuracy to expected Results

Graphs / Figures / Tables Completion

Simulation / Hardware Implementation

TOTAL SCORE:

Instructor’s initials: ______________________


NFC Institute of Engineering & Technology, Multan Lab manual
Department of Chemical Engineering C++

Lab13: Multi-dimensional array computer Programme


Requirements:
 Turbo C + + Software
 Computer
Standard Operating Procedure:
Procedure:
The fig is shown below:

Output Figure:

Code:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int qrs[5] [3]={{63,98,38},
{33,32,55},
{22,11,48},
{60,71,76},
{46,67,56}};
int m,n;
for(m=0; m<=4; m++){
for(n=0; n<=2; n++)
cout<<qrs[m][n]*25/17<<"\t";
cout<<endl;}
getch();}
NFC Institute of Engineering & Technology, Multan Lab manual
Department of Chemical Engineering C++

Lab10: To write for loop computer Programme


Purpose:
Standard Operating Procedure:
Procedure:
The fig is shown below:

Output Figure:

Programme:

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,r,c;
cout<<"enter value of a";
cin>>a;
for(a=3; a<=9; a++){
NFC Institute of Engineering & Technology, Multan Lab manual
Department of Chemical Engineering C++

r=a*c+24;
cout<<a<<"*"<<c<<"+"<<2<<"="<<r<<endl;}
getch();
}

Das könnte Ihnen auch gefallen