- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 7
- Posts with Downvotes
- 4
- Downvoting Members
- 5
does anyone know how todisplay the following using a for loop in my program question:if n=5 where n is the ht of the pattern [code] ********* **** **** *** *** ** ** * *[/code] if n=4 [code] ******* *** *** ** ** * *[/code] SOLUTION I TRIED OUT IS [code=c]#include<stdio.h> … |
|
my homework is to make a c program displayin de cosine series.....i made up one referrin buks but can it be made simpler or somethin using while statements.......... [code=cplusplus] #include<iostream.h> #include<conio.h> #include<math.h> int fact(int);//Global defenition void main() { //cos(x) //to find the power pow(number,power); //to find root sqrt(number)-- in math.h … |
|
does anyone know what the error is?????.......... [code=cpp] #include<iostream.h> #include<conio.h> #include<math.h> void main() { void mtable(int ,int); int num,n,prod; cout<<"\n\n\tEnter the no"; cin>>num; mtable(num,n) ; cout<<"\n\n\tEnter the limit"; cin>>n; cout<<"\n After one call "; mtable(5,10); mtable(7,10); getch(); } void mtable(int num,int n) int prod=1; for(int i=0;i<=n;i++) { prod=num*i; cout<<"\n"<<num<<" * … |
|
:?: can anyone tell me where the error is? [code=cpp] #include<iostream.h> #include<conio.h> void main() { clrscr(); void zero_small(int &,int &); int a,b; cout<<"\n\n\n\tEnter the first no "; cin>>a; cout<< "\n\n\n\tEnter the second no "; cin>>b; zero_small(a,b); cout<<"\n\n\n\tValue of the first no is "<<a; cout<<"\n\n\n\tValue of the second no is "<<b; … |
|
This is a program i made..but i wanted it to arrnge the total in decreasing order showin the highest scorer 1st....what more should i do 4 that in this program....??? [code=cplusplus] #include<iostream.h> #include<conio.h> void main() { int n; const int limit=50; int rollno[limit]; int maths[limit],english[limit],science[limit],social[limit],hindi[limit]; int Total[limit]; char Grade[limit]; int … |
|
Does anybody know how to this question.... An election is contested by 5 candidates.They are numbered 1-5 and the voting is done by marking the candidate no on the ballot paper. Writea program to read the ballots and count the votes cast for each candidate using an array variable count.In … |
|
Does anyone know how to solve this question............ An election is contested by 5 candidates.They are numbered 1-5 and the voting is done by marking the candidate number and the ballot paper.Write a programme to read the ballots and count the votes cast for each candidate using an array variable … |
|
can u pls tell me whr i have gone rong------i have got 2errorz... #include<iostream.h> #include<conio.h> void main() { cout<<"\n\n\n\tPATTERN\n\\n\n\t" ; for(int i=1; i<=9; i++); {for (int j=1;j<=i; j++); cout<<i; } getch(); } |