Write a program in C Program to find the sum of the following :
The input contain a sequence of two or more positive integers terminated by -1. Write a piece of code to count the ‘incidences’ in...
Type: Posts; User: ashiela
Write a program in C Program to find the sum of the following :
The input contain a sequence of two or more positive integers terminated by -1. Write a piece of code to count the ‘incidences’ in...
so if is not.. then i'll try using while?
can you show me an example or something
so my method isnt correct.. can you give me the output so that i can figure it out the program by myself cause im getting confuse
int data(3)
int main()
{
cout << sizeof (int) << "\n"; //size of an integer
cout <<sizeof (short int) << "\n\n"; //size of
//short integer
cout <<sizeof (data(01) << "\n"; //size...
claudiu:
ok but for this question do i should use array ?
Write a program in C program to find the sum of the following:
The input contain a sequence of two or more positive integers terminated by -1. Write a piece of code to count the 'incidence' in this...