Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "genlib.h"
- #include "simpio.h"
- int main()
- {
- int pmathitwn,pthematwn,b,a,i,j,c;
- double bathmos[30][10];
- b = TRUE;
- pmathitwn = -1;
- while(b)
- {
- printf("dwse plhthos mathitwn : ");
- pmathitwn=GetInteger();
- if(pmathitwn>30)
- {
- printf("dwse plhthos mathitwn (<=30) : ");
- pmathitwn=GetInteger();
- }
- else
- b = FALSE;
- }
- c = TRUE;
- a = -2;
- while(c)
- {
- printf("dwse plhthos thematwn : ");
- pthematwn=GetInteger();
- if(pthematwn>10)
- {
- printf("dwse plhthos thematwn (<=10) : ");
- pthematwn=GetInteger();
- }
- else
- c=FALSE;
- }
- for(j=1; j<=pmathitwn; j++){
- for (i=1; i<=pthematwn; i++){
- do
- {
- printf("dwse th bathmologia tou %d ou thematos tou %d ou mathith :",i,j);
- bathmos[i][j]=GetReal();
- }
- while(bathmos>100);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement