write a pseudo code for a program which generates even numbers between 1000 and 2000 and then prints them in the standard output.it should also print total sum.
Vishal is having a bunch of coins ranging from rupees 1 to 10. Help him to write program to find the sum and average of the coins that he is having using while loop.
What happens if the condition in a while loop is initially false? Explain and differentiate
between while and do while statement in ‘C’ language.
What is an expression? What are its components? Explain.
Write a program that accepts a letter grade as input and outputs the teacher’s remarks. Use
only switch, do not use any if’s. Example: If ‘A’or ‘a’, then “Excellent job!”. If ‘F’ or ‘f’, then “You
failed. Please study more next time”.
Write a program that takes as input a class score. Output the grade for the class based on the
following guideline:
Exactly 100 is A+
90and above is A
80 and above is B
70 and above is C
60 and above is D
Anything less than 60 is F
Anything more than 100 or less than 0 is invalid input.
Given an integer N as input. Write a program the yellow right-angle pattern of N lines as bellow.
Note:There is a space after each asterisk (*) Character.
Input
The first line is an integer N
Explanation
In the given example the yellow right angled triangle of side 5 .Therefore, the output should be.
*
* *
* *
* *
* * * * *
Sample Input 1
4
Sample Output 1
*
* *
* *
* * * *
you cannot use built-in functions or NumPy or Pandas!
1. Write a function which finds all Pythagorean triplets of triangles whose sides are no greater than a natural number N.
2. Given a list of integers, write a function that finds the smallest and the largest value of this list. Given a list of numbers, write a function which finds their standard deviation
by CodeChum Admin
Now this one's a tad bit tricky, but you can definitely do it!
Instructions:
Input
A line containing five integers separated by a space.
1·2·3·4·5Output
A line containing an integer.
4084101by CodeChum Admin
We've tried adding together integers, now how about strings?
Instructions:
Input
A line containing two strings separated by a space.
hello·worldOutput
A line containing the concatenated string with no spaces.
helloworld