Advertisement
emirtzan

Untitled

Nov 19th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.97 KB | None | 0 0
  1. #include <stdio.h>
  2. #include "genlib.h"
  3. #include "simpio.h"
  4.  
  5.  
  6. int main()
  7. {
  8.     int pmathitwn,pthematwn,b,a,i,j,c;
  9.     double bathmos[30][10];
  10.  
  11.  
  12. b = TRUE;
  13. pmathitwn = -1;
  14.     while(b)
  15.     {
  16.         printf("dwse plhthos mathitwn : ");
  17.        pmathitwn=GetInteger();
  18.        if(pmathitwn>30)
  19.        {
  20.         printf("dwse plhthos mathitwn (<=30) : ");
  21.        pmathitwn=GetInteger();
  22.        }
  23.        else
  24.         b = FALSE;
  25.     }
  26.  
  27. c = TRUE;
  28. a = -2;
  29.     while(c)
  30.     {
  31.         printf("dwse plhthos thematwn : ");
  32.         pthematwn=GetInteger();
  33.         if(pthematwn>10)
  34.         {
  35.             printf("dwse plhthos thematwn (<=10) : ");
  36.             pthematwn=GetInteger();
  37.         }
  38.         else
  39.             c=FALSE;
  40.     }
  41.  
  42.  
  43.  
  44.  
  45.  
  46. for(j=1; j<=pmathitwn; j++){
  47. for (i=1; i<=pthematwn; i++){
  48.     do
  49. {
  50.  
  51.         printf("dwse th bathmologia tou %d ou thematos tou %d ou mathith :",i,j);
  52.         bathmos[i][j]=GetReal();
  53.  
  54.  
  55. }
  56. while(bathmos>100);
  57.  
  58.  
  59. }
  60. }
  61.  
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement