Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3.  
  4. using namespace std;
  5.  
  6. int main(){
  7. double dNum1 = 0, dNum2 = 0 , dResult = 0;
  8. int iChoice = 0;
  9.  
  10. startPoint:
  11. printf("%s n" , "enter 2 numbers : ");
  12. if( scanf("%d", &dNum1 ) == 1 && scanf("%d" , &dNum2) == 1){
  13. dResult = dNum1 + dNum2;
  14. printf("%d " , dResult );
  15.  
  16. } else{
  17.  
  18. goto startPoint;
  19. }
  20.  
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement