Write a programe print the sum of series 0,1,2,.....10
Answer Posted / nithya
#include<stdio.h>
main()
{
int i,sum=0;
printf("sum of the series is");
for(i=0;i<10;i++)
{
sum=sum+i;
printf("%d",sum);
}
| Is This Answer Correct ? | 16 Yes | 5 No |
Post New Answer View All Answers
What is the use of getch ()?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
Are there constructors in c?
What is #define in c?
Tell me can the size of an array be declared at runtime?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What does return 1 means in c?
Write a program to find factorial of a number using recursive function.
In a switch statement, what will happen if a break statement is omitted?
What is the difference between a string and an array?
Is there a way to jump out of a function or functions?
Differentiate between #include<...> and #include '...'
Write a program to use switch statement.
What is a example of a variable?