pizdaogólna
Guest 343 23rd May, 2022
#include <iostream>
using namespace std;
int main() {
float x, y, w;
char z;
E1: printf("Podaj: x znak dzialania y :");
scanf("%f %c %f", &x, &z, &y);
E2: if (z=='+')
w=x+y;
else if(z=='-')
w=x-y;
else if(z=='*')
w=x*y;
else if(z=='/')
{
if (y!=0)
w=x/y;
else{
printf("Blad argumentu!\n");
goto E1;
}
}
else{
printf("Bledny znak! Podaj znak: ");
scanf("%c", &z);
goto E2;
}
cout<<"Wynik w= "<< x <<z<<y<<" = "<<w<<endl;
return 0;
}
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- Untitled
Markup | 19 | 9 hours ago
- Untitled
Markup | 24 | 11 hours ago
- Wanted to see what your conviction is on this theme
Markdown | 14 | 12 hours ago
- Untitled
Markup | 63 | 1 day ago
- mega555kf7lsmb54yd6etzginolhxxi4ytdoma2rf77ngq55fhfcnyid.onion
Template Toolkit 2 | 25 | 1 day ago
- Untitled
Markup | 70 | 2 days ago
- Untitled
Markup | 77 | 2 days ago