CLS
INPUT "Enter the first number"; a
INPUT "Enter the second number"; b
m = a
n = b
WHILE a <> 0
r = b MOD a
b = a
a = r
WEND
l = (m * n) / b
PRINT "HCF is "; b
PRINT "LCM is "; l
Answer:
#include <stdio.h>
#include <math.h> /* has sin(), abs(), and fabs() */
int main(void) {
double interval;
int i;
for(i = 0; i <30; i++) {
interval = i/10.0;
printf("sin( %.1lf ) = %.3lf \t", interval, abs(sin(interval)));
}
printf("\n+++++++\n");
return 0;
}
Explanation:
The C source code defines a void main program that outputs the absolute value of the sine() function of numbers 0.1 to 3.0.
Depends on what you are working on.
If you are working on a website I recommend Adobe Dreamweaver CC.
if its small assignments that doesnt involve major work, I'd use something like notepad++
def zipZapZop():
number = int(input("Enter the number: "))
dictionary = {3: "zip", 5: "zap", 7: "zop"}
amount = 0<em> #amount of non-divisible numbers by 3, 5 and 7</em>
<em> for key, value in dictionary.items():</em>
if(number%key == 0): <em>#key is the number</em>
print(value) <em>#value can be or zip, or zap, or zop</em>
else: amount += 1 #the number of "amount" increases every time, when the number is not divisible by 3, or 5, or 7
if(amount == 3): print(number) <em>#if the number is not by any of them, then we should print the number</em>
zipZapZop()
Answer: Data integrity issues
Explanation: