Loading...
Engaged Employer
How to print 1 to 100 without using semicolon?
Anonymous
▼ #include #include void main() { for(int i=1;i=100;i++) { if(printf("%d\n",i)) } }
#include #define N 10 int main(int num) { if (num <= N && printf("%d ", num) && main(num + 1)) { } }
#include #include void main() { for(int i=1;i<=100;i++) { if(printf("%d\n",i)) } }
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.