0 like 0 dislike
38 views
in Computer Science by (1.0m points)
Write the general syntax of ifs statement?

1 Answer

0 like 0 dislike
by (1.0m points)
I'll give you the syntax in C#. I think its the same in C

(i) if(condition) {

//do stuff

}

(ii) if (condition) {

// do stuff

}

else {

//do other stuff

}

(iii) while(condition) {

//here goes my stuff

//beware of infinite looping if your condition is always true

}

hope this helps

Related questions

0 like 0 dislike
0 answers 53 views
0 like 0 dislike
1 answer 43 views
0 like 0 dislike
1 answer 68 views
asked Feb 14, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 56 views
0 like 0 dislike
1 answer 39 views
asked Feb 12, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 58 views
asked Feb 11, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 71 views
asked Nov 9, 2018 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 67 views
0 like 0 dislike
1 answer 45 views
0 like 0 dislike
0 answers 52 views
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute: School, College, University, Academy Free Homework Help

19.4k questions

18.3k answers

8.7k comments

6.3k users

Free Hit Counters
...