User Profile

Collapse

Profile Sidebar

Collapse
Jason4567
Jason4567
Last Activity: Aug 28 '22, 12:33 PM
Joined: Dec 2 '18
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Jason4567
    replied to What is the purpose of a continue statement?
    in C
    Definition:The continue statement in C programming forces the next iteration of the loop to take place, skipping any code in between.
    Here is also a simple example:
    If you run it you will notice that the 3 number is not printed because we have made a condition that if i = 3 then it skips this i and moves to the next i and it prints it.
    Code:
    #include <stdio.h>
    
    int main(){
        int i;
        for
    ...
    See more | Go to post

    Leave a comment:


  • Calculating mathematical expressions in C with getchar()

    I want to create a program in C language that calculates mathematical expressions like 23+45*8 and returns the result of it.
    I have already tried to solve this problem but the program I made is working only for two numbers and I can do only one operation each time.
    How can I make this program work for many numbers and many operations?
    Any ideas or suggestions would be helpful.
    Here is also the code:

    Code:
    #include
    ...
    See more | Go to post
No activity results to display
Show More
Working...