Message from C, C++ talks

July 2019

— Are there any tools to convert C code to Python because i need the python equivalent for the below C code:

Can anyone provide me the python code conversion for the below mentioned code

#include <stdio.h>

int main()
{
int kases;
scanf("%d", &kases);
while(kases--) {
int N;
scanf("%d", &N);

for(int i = 1; i <= N; ++i) {

if(i % 3 == 0 && i % 5 == 0) printf("FizzBuzz\n");
else if(i % 3 == 0) printf("Fizz\n");
else if(i % 5 == 0) printf("Buzz\n");
else printf("%d\n",i);
}
}

return 0;
}

Regards,

Sriyam

Message permanent page

— Seems to be easy, why won’t you rewrite it?

— Can someone suggest me an alternative bot to joinhidder bot

— /saved

— 

List of notes in C/C++:
- 0_to_show_item_use"#item"
- awesomeness
- best
- best-book
- bingo
- callingfunction
- cbook
- `c++_isnt_c_with_classes`
- cpp
- cppbook
- findprojects
- freeprogrammingbooks
- gcc9
- goodcodingmentality
- goodgoogling
- googleit
- great
- hownottoask
- howtoask
- howtopostcode
- howtoprogram
- ide
- learn
- mcve
- meta
- noendl
- nousingstd
- offtopic
- ossu
- ot
- reference-the-standard
- rules
You can retrieve these notes by using /get notename, or #notename

— #freeprogrammingbooks

— Https://github.com/p-r-y-l/free-programming-books

— #cppbook

— #cbook

— Https://stackoverflow.com/questions/562303/the-definitive-c-book-guide-and-list

— #howtoprogram

— If you want to learn how to program, the best way is writing a lot of programs. You can get the basics of any programming language just using Google. Once you have that, make some programs that you're interested in, and if you don't have any idea, you can use websites like projecteuler.net or codingame.com to get some challenging ideas.

If you want to learn specifically C++, you can read C++ Primer last edition or A Tour of C++ (written by the C++ creator) and then Effective Modern C++. Of course, read the books while programming a lot, and try to find useful ways to use what you just learned. This is how I learned (more like "I'm learning") C++.
Credits : Aleradamantis

Message permanent page

— /report flood/spam

— Reported Miqueas to admins.​​​​​​​​​​​​​

— /warn spam