Facebook
From ja xD, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 264
  1. #include <iostream>
  2.  
  3. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  4.  
  5. int main(int argc, char** argv) {
  6.         int a=1 ,b=100,c=101;
  7.         printf("Podaj liczbe a oraz b \n");
  8.         scanf("%d",&a);
  9.         while(a>b)
  10. {
  11.         printf("A jest wieksze od 100   \n      Dodaje a do 100 \n");
  12.         c=a+b;
  13.         printf("%d",c);
  14.         break;
  15. }
  16.         while(b>a)
  17. {
  18.         printf("A jest mniejsze od 100 \n Odejmuje od 100 \n");
  19.        
  20.         c=b-a;
  21.         printf("%d",c);
  22.         break;
  23. }
  24.         while(b=a)
  25.         {
  26.                 printf("Liczby sa rowne");
  27.                
  28.                 break;
  29.         }
  30.        
  31.        
  32.         return 0;
  33. }