CodeMan
Home
Uva
AtCoder
Codechef
Codeforce
Hackerrank
LeetCode
Devskill
TopCoder
Spoj
Algorithm
Python3
Hackerearth
Uri
C++
Data Structure
Sunday, September 22, 2019
প্রোগ্রামিং সমস্যা 4 - [৫২ সমস্যা বই] ভাজক
#include< iostream > using
namespace
std
;
int
main
() {
int
tc,k;
cin >> tc;
for
(
int
i =
1
; i <= tc; i++) {
cin >> k;
cout <<
"
Case
"
<< i <<
"
:
"
;
for
(
int
j =
1
; j <= k/
2
; j++){
if
(k%j ==
0
) cout << j <<
"
"
;
}
cout << k << endl;
}
return
0
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment