SUM = 0: FOR N = 1 to 100: SUM = SUM + N: Next N: PRINT CHR$(11); "Sum ="; SUM: END
#!/bin/bashs=0c=1while [$c-le 100]dos='expr $s + $c'c='expr $c + 1'doneecho "Sum of 1 to 100 is $s"
5,000,000
What for? There is only a 154 inside that is divisible by 77...
You could write it as 5555555555555/1.
-318 Negatives are integers.
Write a program in C for showing working of different logical operator in C.Your program should guide users with proper message/menu on the console. (5 Marks)
write a program in C that prompts the user with the following lines: a) Add two integers c) Compare two integers for the larger t) Test an integers for odd or even q) Quit
Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11
1. Accept the 2 numbers 2. Add the 2 numbers3. Compare answer with 54. If answer is greater than 5 subtract with 5 else give a error message.
int x= 1; int y= 2;
a=153 a=n%10;
i dont no string for servlate
#!/bin/bashs=0c=1while [$c-le 100]dos='expr $s + $c'c='expr $c + 1'doneecho "Sum of 1 to 100 is $s"
Write down the entire error message. Also, list what you were doing before you got the error. Include the program you were working in.
This is not a question so you do not need to use a question mark at the end of your sentence.
Oh this is easy =PLets say or file is "file.txt"
i love u darling