- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
4 Posted Topics
Re: Your having problem because of the loop's condition. When the multiplier is less than 0, the condition will not be satisfied and it will go inside the loop. For e.g, you have multiplicand=3, multiplier=-2, the answer would be -6 but the program will output 0. Let's trace the code. product: … | |
Re: this will display N diagonal periods... [code=c] #include<stdio.h> main() { int i,j,number; printf("Enter an integer: "); scanf("%d",&number); for (i=1;i<=number;i++) { for (j=1;j<=i;j++) { if (j==i) { printf("."); } else { printf(" "); } } printf("\n"); } } [/code] | |
Re: try this: [CODE] if (isset($_FILES["file"])) { @list(, ,$imtype, ) = getimagesize($_FILES['file']['tmp_name']); if ($imtype != 3) { if ($imtype != 2) { if (imtype != 1) { echo "Invalid format"; } } } if($_FILES['file']['error'] != UPLOAD_ERR_OK) { echo "Upload file error"; } else { if(!is_uploaded_file($_FILES['file']['tmp_name'])) { echo "Invalid request"; } else … | |
Re: try this: 1st page [code=php] //some code here <input type="radio" name="radiogroup" value="someValue1" />someValue1 <input type="radio" name="radiogroup" value="someValue2" />someValue2 //some code here [/code] 2nd page [code=php] $value = (string)$_POST["radiogroup"]; echo $value; [/code] ![]() |
The End.