![]() |
| ||
| plzz solve my problem Hye........ plzzz solve my problem my problem is that in this progamme is runing but i dont understand that how in the end of the programme there is some thinds are missing that are when programme finished then it print the Thanks for using the program. and this progamme is runinig in this way for example The program should also have a menu like. Addition : A Subtraction : S Power : P Factorial : F Quit : Q Please enter the option: The program should repeat until the user wants to quit. Sample Output Please enter the first number: 11 Please enter the second number: 3 Addition : A Subtraction : S Power : P Factorial : F Quit : Q Please enter the option: A The Result after Addition is: 14 Do you want to continue? Y //After clearing the text window Addition : A Subtraction : S Power : P Factorial : F Quit : Q Please enter the option: S The Result after Subtraction is: 8 Do you want to continue? Y //After clearing the text window Addition : A Subtraction : S Power : P Factorial : F Quit : Q Please enter the option: P The Result after taking Power is: 1331 Do you want to continue? Y //After clearing the text window Addition : A Subtraction : S Power : P Factorial : F Quit : Q Please enter the option: Q Thanks for using the program. but that i have make it but there is many problems plzzzzzzzz can u help me in this problem BYE take crae bye THE ORGRAMME IS #include<iostream.h> |
| ||
| Re: plzz solve my problem Use [code] [/code] tags. #include<conio.c>->#include<conio.h> |
| ||
| Re: plzz solve my problem if(choice == 's' || choice == 'v' || choice == 'a' || choice == 'f' || choice == 'q')What are you trying to do there? BTW, the standard C function pow() is pretty much the same as int Power(int time1, int time2) |
| ||
| Re: plzz solve my problem #include<stdio.h> #include<conio.h> void main() { int A,S,a,b; long int F=1; clrscr(); printf("enter two number"); scanf("%d%d",&a,&b); A=a+b; printf("\nA=%d",A); S=a-b; printf("\nS=%d",S); for(i=1;i<=a;i++) { F=F*i; } printf("\nthe factorial first number F(a)=%ld",F); for(i=1;i<=b;i++) { F=F*i; } printf("\nthe factorial of second number F(b)=%ld",F); getch(); } |
| ||
| Re: plzz solve my problem include <math.h> done == yes |
| All times are GMT -4. The time now is 3:02 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC