{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Q1 - if(i%3==0||i%5==0 s=s i cout<<s getch/233168

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include<iostream.h> #include<conio.h> # void main() { clrscr(); long int s=0; for(int i=1;i<1000;i++)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { if(i%3==0||i%5==0) s=s+i; } cout<<s; getch(); } //233168...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online