if statement | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

if statement

if we use return 0; in below programme what will be the answer or error #include<stdio.h> int main() { int num =41; num+=1; if(num==42){ printf("you won!"); } }

19th May 2020, 2:59 AM
BHAWNA SAINI
BHAWNA SAINI - avatar
1 Answer
0
BHAWNA SAINI you really didn't ask a question but as 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 pointed out the answer is as simple as this https://code.sololearn.com/cSrP5dNloL43/?ref=app
19th May 2020, 3:40 AM
BroFar
BroFar - avatar