Skip to content

Commit

Permalink
Update Soluton_Bad_Triangles
Browse files Browse the repository at this point in the history
  • Loading branch information
ritwiksingh21 authored Oct 8, 2020
1 parent beda2fe commit 01b6985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bad Triangle/Soluton_Bad_Triangles
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
int main()
{
int t,i,n,count;
scanf("%d", &t);
scanf("%d", &t); #Taking the input from user
while(t--){
count = 0;
scanf("%d", &n);
int arr[n];
for(i=0;i<n;i++){
scanf("%d", &arr[i]);
scanf("%d", &arr[i]); #filling up the array
}
for(i=2;i<n;i++){
if(arr[0]+arr[1]<= arr[i]){
Expand Down

0 comments on commit 01b6985

Please sign in to comment.