Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  12
Language: C/C++
Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
float a,b;char f;
printf(Vvedy cheslo a\n");
scan_s("%f",&a);
printf("Vvedyznak ili fynciu a\n");
scan_s("%c:%d",f,f);
f=getchar();
{switch(f)
{
case '+':
printf(Vvedy cheslo b\n");
scan_s("%f",&b);
printf("a+b=%f",a+b);
break;
case '-':
printf(Vvedy cheslo b\n");
scan_s("%f",&b);
printf("a-b=%f",a-b);
break;
     return 0;
}
          
Comments: