#include<iostream.h>
#include<conio.h>
main()
{
clrscr();
int a,b,c,d,e;
cout<<"ENTER STARTING NUMBERn";
cin>>a;
cout<<"ENTER ENDING NUMBER\n";
cin>>b;
cout<<"--------------OUTPUT-------------";
{
for(c=a;c>=b;--c)
if(c%7==0&&c%5==0)
cout<<c<<"\n";
}
getch();
}
//YOU ENTER 5 TO 150
//OUTPUT 140 ,105,70,35
#include<conio.h>
main()
{
clrscr();
int a,b,c,d,e;
cout<<"ENTER STARTING NUMBERn";
cin>>a;
cout<<"ENTER ENDING NUMBER\n";
cin>>b;
cout<<"--------------OUTPUT-------------";
{
for(c=a;c>=b;--c)
if(c%7==0&&c%5==0)
cout<<c<<"\n";
}
getch();
}
//YOU ENTER 5 TO 150
//OUTPUT 140 ,105,70,35
0 Comments
USE ANONYMOUS PROFILE IF YOU WANT D'NT SHARE EMAIL