You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Mathematics for Data Science I
Below is a list of real numbers: √3,2.53,2.5,e,√49,7,22,π,−35,√6,1729,−20000
How many integers are there in the given list?
for this ques the ans given is 5 but root 49 is also an integer isn't it?
so ans should be 6, right?
kashifm...@gmail.com
unread,
Oct 5, 2020, 5:49:06 AM10/5/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Mathematics for Data Science I
Hey, total integers are root 49=7, 22,-35,1729,-20000.
so total only 5
Rishika Singh
unread,
Oct 5, 2020, 5:59:28 AM10/5/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Mathematics for Data Science I, kashifm...@gmail.com
but there's both root 49 and 7 written in ques. So they should be counted separately.
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Christopher Raphael
unread,
Oct 6, 2020, 3:26:42 AM10/6/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Mathematics for Data Science I
The unmodified list will have "6 counts" of "integer", since the question asks one to count the number of integers in the list. (did not ask for unique integers' count)
Christopher Raphael
unread,
Oct 6, 2020, 4:14:10 AM10/6/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Mathematics for Data Science I
let listOfReals = [ √3, 2.5, e, √49, 7, 22, pi, -35, √6, 1729, -20000 ]; let numberOfElementsInList = listOfReals.length; //=>length of the array = 11 let integerCount=0;