I wana make a programm | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I wana make a programm

print the prime numbers from 1 to 50

9th May 2018, 4:42 PM
Abdulla Nasri
Abdulla Nasri - avatar
1 Answer
0
#include <iostream> using namespace std; int main(int argc, char *argv[]) { for (int i = 1; i <= 50; i++) cout << i << endl; /* you can use " " instead of endl */ }
1st Jan 2023, 10:03 AM
racastro
racastro - avatar