vectors a,b,c with 3 integers.Combine the three vectors to become a 3×3 matrix
a<-c(1,2,3) b<-c(4,5,6) c<-c(7,8,9) m<-cbind(a,b,c) print("Content of the said matrix:") print(m) …
while( ! ( succeed = try() ) );
a<-c(1,2,3) b<-c(4,5,6) c<-c(7,8,9) m<-cbind(a,b,c) print("Content of the said matrix:") print(m) …
str1 = "The quick brown fox jumps over the lazy dog." print("Original vector(string)") print(str1) print("Unique elements …
marks = c(70, 95, 80, 74) barplot(marks, main = "Comparing marks of 5 subjects", xlab = "Marks", ylab = "Subject", na…
print("Sequence of numbers from 20 to 50:") print(seq(20,50)) print("Mean of numbers from 20 to 60:") print(mean(20:60)) print(…
name = "Python"; n1 = 10; n2 = 0.5 nums = c(10, 20, 30, 40, 50, 60) print(ls()) print("Details of the objects in memory:") …
name = readline(prompt="Enter your name: ") age = readline(prompt="Enter your age: ") print(paste("My name is",name,…
#include <iostream> using namespace std; int string_length(char *str) { int length=0; while(*str!='\0') { …