hello Guys
Jab ap k k pass I.T filed me koi b problem ate hai to ap problem ko # tariqoo se hall karoo
First of All Algorithm ,, Flowchart,, and last is program…
Flowchart…
the diagrametical view of soloution of problem is called flow chart
jab ap kesi problem ka algorithm bana loo to us k bad ap flowchart par awoo gay
es me ap digram ke shakal me kesi masly ka hgall niklkty ho
ye es k symble jo k ap use karoo gy me ek example dita hun es me
es me ham ne 4 veriable liye hai jes ka average nikalna hai to ye process hai hai flow chart ka jes ko b masla ho wo comment me poch ly
Algorithem….
a set of steps that are followed in order to solve a mathematical problem or to complete a computer process
kesi problem ko mathmetiucation k process se hall karna es ko algorithem kehty hai
yad rahy agr ap log sahi tarha algorthim na seeky to per programming bht mushkil ho ge jab ap kesi problem ka algoo bana dy to per program bht easy ban jay ga es lay algorithem py zada focus dy k sek lay ap loog per programming easy ho ge me kuch exam k pic dita hun lecturew me ap log es par bht practice kary k algo bany ur gar me b algo bany aony ghar ka ek algo bana lay k ketna kharcha month ka hota hai
(!) ap ko kaha jay k ap 2 varible ka +,-,* and divison kary to es ka algo es traha ho ga
Start
input a,b
c=a+b
d=a-b
e=a*b
f=a/b
display (c,d,e,f)
end
To ye ta algo ka process ap log es tarha net se help ly thora ur algpo ko achi rtarha samjy me to samjta hun k ap log es ko samjy hun gy q k esay hai es tarha apny lay problem diky ur us ka algo bana lay dikoo me algo py bht ficus kia es lay ap logo ko chahy k ap log b achi tarha sek lay algo ko ….
Jo last satge hai problem ko slove karny k lay usy kehty hai program
Program
A program is a set of instruction
jo ham instruction likty hai es ko program kehty hai
to me ap ko usi algo ka program banta hun jo me ne lec me dia hai
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c,d,e,f;
cin>>a;
cin>>b:
c=a+b:
d=a-b;
e=a*b;
f=a/b;
cout<<c<<d<<e<<f;
getch();
}
(1) Ok pehly jo #include<iostream.h> hai ye headerfile hai I se matlb k input and o se mtlb k output streat io ka class hai and h us ka object hai es se ham jo b input ya output ka kam karty hai ye us k zariye hota hai agr program me yew na ho to program to kam karuy ga par na input ho ge na output .
(2) Us k bad jo header file hai #include<conio.h> ka es se pehly me ap ko getch() ka bta ta hun jo hamra output ka screen hai ye getch output waly screen ko tab tak rokta hai jab tak ham koi btn na daby agr program me getch na ho to program rub ho ga par out put ke screen bht tezi se wapas aye ge ur hamy kuch naazr nahe aye ga to ye jo conio.h hai ye ham getch k lay use karty hai jesa k input output k lay iostream.h use karty hai I hope k ap samj gay hon gy
(3) Voi main() ye ek function hai hamra jetna b kam ho ga wo ham voiud main k body mew Karin gy
(4) Clrscr() use karty hai output k screen ko saf karny k lay jo porna wala output ho wo screen par na aye to es k ly use karty hai
(5) Int k bary me next lec me batoo ga bus itna samjy k ye ham integer k lay use karty hai and jop sat me ham ne alphabet liye hai wo variable hai es ka b next lecture me batoo ga
(6) Cin>> use kartyy hai input k lay
(7) Cout use karty hai output k ly
(8) And getch() ka bta dia
(9) { } ye void main ke body hai
I hope k aj ka lecture ap logo ko samj aye ho ga ye bht must lecture hai plz ees ko read kary and ghar me bet k algoo bana lay
Jo b issue hoa comment me poch sakty ho
Thank u soo much
Regred :: MT Ali Okz
No comments:
Post a Comment