12345.txt

  • Uploaded by: rishikesh vaishnav
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View 12345.txt as PDF for free.

More details

  • Words: 55
  • Pages: 1
#include<stdio.h> int main() { int choise,x,s,y; printf("\n1.addition"); printf("\n2.subtraction"); printf("\n3.multiplication"); printf("\n4.divition"); switch(choise) { case 1:iprintf("enter the no."); scanf("%d%d"&x,&y); s=(x+y); printf("sum is%d",s); break; case 2:iprintf("enter the no."); scanf("%d%d"&x,&y); s=(x-y); printf("difference is%d",s); break; case 3:iprintf("enter the no."); scanf("%d%d"&x,&y); s=(x*y); printf("sum is%d",s); break; case 4:iprintf("enter the no."); scanf("%d%d"&x,&y); s=(x/y); printf("sum is%d",s); break; default printf("invalid character"); } return 0; }

More Documents from "rishikesh vaishnav"