Search C Program | nimishsoft@gmail.com

Sum of two numbers

/*    Sum of two Variable    */
#include<stdio.h>
 int main()
 {
  int var2;
  int var1;
  int var3;

  printf("Type your frist value to add : ");
   scanf("%i",&var1);
  printf("Type your second value to add : ");
   scanf("%i",&var2);
  var3 =var2+var1;
   printf("Total of your value =  %i",var3);
  return 0;
 }

29 comments:

  1. what is %i?is it represent integer or any other?

    ReplyDelete
    Replies
    1. % means place holder for variable, and %i means integer

      Delete
  2. Nice article admin thanks for share your atricle keep share your knowledge i am waiting for your new post check mens winter jackets polo shirts kindly review and reply me

    ReplyDelete
  3. Hello,
    I m Really looking forward to read more. Your site is very helpful for us .. This is one of the awesome post i got the best information through your site and Visit also this site
    Satta king
    Really many thanks

    ReplyDelete
  4. Sir I am new in BCA and blogging field.sir I share my notes on blogger for helping students.sit your article is so good and very helpful for begginers.
    Sir can you give me follow link please.if my posts helpful for peoples.

    Thanks

    ReplyDelete
  5. Nice content - Anyone Interested To Qualify java interview then follow on https://www.eeasyprogramming.online/

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Really nice blog, very infromative. You can refer more topics related to C language like C pointers and C Programs from here for future articles
    Thanks !

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Java Nested For Loop with Simple Example
    Read Now

    ReplyDelete
  10. Basic Star Patterns Programs In Java
    Read Now

    ReplyDelete
  11. Amazing content, you can find more content related to C Programming here.

    ReplyDelete
  12. Nice and very helpful C Programming articles... keep posting...

    ReplyDelete
  13. Sum of two numbers can you write code in Java.

    ReplyDelete