Wlcome to the blogging tifani

Program C++ Mencetak Angka Kelipatan di antara bilangan yang di inputkan

Jumat, 24 Oktober 20140 komentar

#include<iostream.h>
#include<conio.h>
int main()
{
int a,b,c;
cout<<endl;
cout<<"*sub menu"<<endl;
cout<<"\t\t\t==>>>MENCETAK ANGKA KELIPATAN<<<=="<<endl;
cout<<"\t\t\t----------------------------------"<<endl;
cout<<"input angka pertama : ";cin>>a;
cout<<"input angka kedua : ";cin>>b;
cout<<"input kelipatan yang akan di munculkan : ";cin>>c;
cout<<endl;
cout<<"==>>hasil : ";
for (a;a<b;a++){
if(a%c==0)
cout<<a;
cout<<" ";
}
getch();
}


Share this article :

Posting Komentar

 
Support : Cara Gampang | Creating Website | Johny Template | Mas Templatea | Pusat Promosi
Copyright © 2015. TIfanie - All Rights Reserved
Template edited by Creating Website Modify by Teknologi Informasi kinie
Proudly powered by Blogger