Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #44.2K
Ranked #4K
~2K People Reached
Favorite Tags

4 Posted Topics

Member Avatar for CodeAerial

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: …

Member Avatar for Liyaan
0
1K
Member Avatar for potato4610

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]

Member Avatar for Liyaan
0
97
Member Avatar for rukshilag

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 …

Member Avatar for ricmetal
0
268
Member Avatar for niths

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]

Member Avatar for rajarajan2017
0
183

The End.