is ke samaj nhe aey repeat it
is ke samaj nhe aey repeat it
Thank you
nice sharing god bless you
yara hm ko bhi sikha doooooooo.....
char array mein ager cin.get wali state ment use ki jay to last ka word kion display nhi hota.?for example age input NOUMAN GUL hai to output NOUMAN GU kary ga L disply nhi hoga..why? plz reply
aap array main name store karnay k leye cin>> ki jagah " gets(array name)" use karain pher space k bad wali value bhe show ho gi..................
Asalam-O-Alakum
Ya Program hum na apni university main bnya tha asta khalta
Bhi aap ka acha work kra ho laken mara ni kya as tara sa concept cler hoga kisi ka
Usama Khan (Computer Engineering)Code:#include<stdio.h> #include<conio.h> void main(void) { int max[5]; int num=0; clrscr(); for(num=0;num<5;num++) { printf("Enter number %d: ",num); scanf("%d",&max[num]); } int b; b=max[0]; for(num=0;num<5;num++) { if(b<max[num+1]) b=max[num+1]; } printf("Largest number is:%d",b); getch(); }
Above Program main Largest Number Show Honga
know i have Students Marks Average Programs
Code:#include<stdio.h> #include<conio.h> void main(void) { int marks[30],average,num; clrscr(); for(num=0;num<30;num++) { printf("Enter marks student %d:",1+num); scanf("%d",&marks[num]); } average=0; for(num=0;num<30;num++) average+=marks[num]; printf("\n\n\nAverage marks of 30 students is:%d",average/30); getch(); }
one dimention array
bhai its a c++ forum aor as far as i know printf is a part of c not c++ c++ may cin hy isnt it???
Pyara Bhi "C" ka koi alag Forum ha to bato...?
asi lya mana C++ main add kya ha asa ya dona pr run kra ga
[B][COLOR="Red"]~~~~~Hum Pakistani Ki ajeeb addat hoti ha agr hum ko Aleem ajaya to hum kisi dosra ko free main pora Aleem ni datay os ko aleem ka raaz ni btatay~~~~~[/COLOR][/B]
[B][COLOR="SeaGreen"]Aleem amm kro sub kuch open krdo jb he Pakistan Taraqe kra ga[/COLOR][/B]
[B][I]Thats Y I say[/I][/B]
[I]"Great Minds Discuss Ideas Average Mind Discuss Events Small Minds Discuss pplz"[/I]
thankxxxxx
Bookmarks