Series-Data Structures and Representation-Assigment, Exercises of Data Structures and Algorithms

This task was assigned by Prof. Chandrashekar Baag at Amrita Vishwa Vidyapeetham. This assignment is related to Data Structures and Representation course. It includes: Sum, While, Loop, Series, Data, Coding, Language, Insert, Input, Output, Display

Typology: Exercises

2011/2012

Uploaded on 07/30/2012

dhanvantari
dhanvantari 🇮🇳

2

(2)

45 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
#include<iostream.h>
#include<conio.h>
void main (void)
{
int x=1,s=0;
clrscr();
while (x>=0)
{
cin>>x;
if (x>=0)
s=s+x;
}
cout<<"\nThe sum is: "<<s;
getch();
}
docsity.com

Partial preview of the text

Download Series-Data Structures and Representation-Assigment and more Exercises Data Structures and Algorithms in PDF only on Docsity!

#include<iostream.h> #include<conio.h> void main (void) { int x=1,s=0; clrscr(); while (x>=0) { cin>>x; if (x>=0) s=s+x; } cout<<"\nThe sum is: "<<s; getch(); }

docsity.com