The cd command, also known as chdir (change directory), is a command-line shell command used to change the current working directory in various operating systems. It can be used in shell scripts and batch files.
Rapid prototyping! I am sure that is correct
Answer:
#include<stdio.h>
#include<stdlib.h>
int main(void){
int seedval;
scanf ("%d", &seedval);
srand(seedval);
printf("%d\n", rand()%10);
printf("%d\n", rand()%10);
return 0;
}
Explanation:
The given code is poorly formatted. So, I picked what is usable from the code to write the following lines of code:
#include<stdio.h>
#include<stdlib.h>
int main(void){
This line declares seedval as integer
int seedval;
This line gets user input for seedval
scanf ("%d", &seedval);
This line calls the srand function to generate random numbers
srand(seedval);
This prints a random number between 0 and 9
printf("%d\n", rand()%10);
This also prints a random number between 0 and 9
printf("%d\n", rand()%10);
return 0;
}
Answer:
number = int(input("Enter a number: "))
sum = number
c = 1
while (sum<=100):
number = int(input("Enter a number: "))
sum = sum + number
c = c + 1
print("Sum: " + str(sum))
print("Numbers Entered: " + str(c))
Explanation:
Hope this helps lovely :)
Answer:
Secondary storage is non volatile,long term storage .Without secondary storage all programs and data would be lost the moment the computer is switched off .There are three main types of secondary storage in a computer system- 1.solid state storage devices such as USB memory sticks.2.optical storage devices such as CD,DVD ext.3.magnetic storage devices ,such as hard disk drives.