g. surgulaZe, g. janeliZe, i. xuciSvili
g. surgulaZe, g. janeliZe, i. xuciSvili
g. surgulaZe, g. janeliZe, i. xuciSvili
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Sesruleba (1/0)? "); romlis Semdegac 1-ianis Setanis SemTxvevaSi<br />
programa gaagZelebs muSaobas, xolo 0-ianis SemTxvevaSi –<br />
damTavrdeba.<br />
#include<br />
main()<br />
{<br />
char nishani ; int x, y, z, pasuxi;<br />
do{<br />
printf("\nSemoitaneT x, operaciis niSani (+,-,*,/) da y : ");<br />
scanf("%d %c %d", &x, &nishani, &y );<br />
switch (nishani)<br />
{<br />
}<br />
case '+': z = x + y; printf("z=%d",z); break;<br />
case '-': z = x - y; printf("z=%d",z); break;<br />
case '*': z = x * y; printf("z=%d",z); break;<br />
case '/': if(y!=0) { z = x / y; printf("z=%d",z); }<br />
else printf("0-ze gayofa akrZalulia!");<br />
printf("\ngavagrZeloT Sesruleba(1/0)? "); scanf("%d",&pasuxi);<br />
}while(pasuxi==1);<br />
return 0;<br />
}<br />
printf("\nnaxvamdis :)");<br />
programis Sesrulebis Sedegi:<br />
SemoitaneT x, operaciis niSani (+,-,*,/) da y: 2+3<br />
z=5<br />
gavagrZeloT Sesruleba(1/0)? 1<br />
SemoitaneT x, operaciis niSani (+,-,*,/) da y: 2-3<br />
z=-1<br />
58