Signup/Sign In

Answers

All questions must be answered. Here are the Answers given by this user in the Forum.

This is how it should be solved:

***



Neela Prasad




https://e7*.pngegg.com/pngimages/416/844/png-clipart-google-logo-g-suite-mobile-phones-11-computer-logo.png"/>




***
one year ago
Here is possible solution for level 6 lesson 6

***
package main
import (
"fmt"
"reflect"
)

// declare function here
func doExercise() {
fmt.Println("")
}

func main() {
fmt.Println(reflect.TypeOf(doExercise))
}
***
one year ago
Here is a possible solution:

***
#include
int main() {
char st[12] = "Studytonight";
char frv[7] = "Forever";
printf("%s %s", st, frv);
return 0;
}
***
one year ago
Please specify the level and lesson for context.
one year ago
Here is a possible solution for level 4 lesson 5 (js-course):

***
let myvehicle = "car";
let weather = "rainy";

if(weather == "rainy")
{
if(myvehicle == "car")
{
console.log("I go to the office");
}
else if(myvehicle == "bike")
{
console.log("I Work from home");
}

}
else if(weather != "rainy")
{
console.log("I go to the office");
}
***
one year ago
Ques:  Do while loop
Here you go:

***
package main
import "fmt"

func repeatHello(times int, msg string) {
for i:=0; i fmt.Println(msg)
}
}

func main() {
repeatHello(3, "I love Studytonight")
}
***
one year ago
Hello brian, try this code:

***
let mobile = {
name: "Apple iPhone 12",
price: 1200,

// defining method
purchase: function(quantity) {
console.log(`Please pay ${(this.price)*quantity} for ${quantity} ${this.name} Mobile phones.`);
}
};

mobile.purchase(2);
***
one year ago
Hello, here is possible solution:

***
#include

int main() {

long double ldbl = 147.470000L;

unsigned int uint = 20000U;

printf("Value of ldbl is: %Lf\n", ldbl);
printf("Value of uint is: %d", uint);

return 0;

}
***
one year ago
Hi Aditi, here is a possible solution code:
***
#include

int main() {

long double ldbl = 147.470000L;

unsigned int uint = 20000U;

printf("Value of ldbl is: %Lf\n", ldbl);
printf("Value of uint is: %d", uint);

return 0;

}
***
one year ago
Step 1: Define the doSomething function in your JavaScript code.
Step 2: Create an HTML element (e.g., a buTton) and aSsign the doSomething function to its onclick attribute.

***



***
one year ago
Follow these steps:
1. Read instructions given in lesson to write code
2. Click run and verify if the output is as expected.
3. Click submit .
4. If the solution is accepted then you'll 'Next' which takes you to the next exercise.

Please check out this page for more information: https://www.studytonight.com/code/
one year ago
Here is a possible solution:

***
#include

int main() {

int x, y, z;

x = 10;
y = 11;

(x > y) ? (z=x) : (z=y);

printf("Value of z: %d", z);

return 0;
}
***
one year ago