Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
poist
//gcc 5.4.0 #include <stdio.h> int main(void) { printf("Hello, world!\n"); return 0; }https://play.google.com/store/apps/details?id=vrpatel0018.cprograms /*switch statement and simple calculater*/ #include<stdio.h> int main() { int a,b; int choice; printf("\nEnter value of a:"); scanf("%d",&a); printf("\nEnter value of b:"); scanf("%d",&b); printf("\n1.Addition \n2.Subtraction \n3.Multiplication \n4.Division"); printf("\nEnter yout choice:"); scanf("%d",&choice); switch(choice){ case 1: printf("Sum of a & b:%d",(a+b)); break; case 2: printf("Subtraction of a & b:%d",(a-b)); break; case 3: printf("Multiplication of a & b:%d",(a*b)); break; case 4: printf("Division of a & b:%d",(a/b)); break; default : printf("please enter valid choice"); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Volume of a square pyramid With functions
A_141124_arrayMaxMin01
Maximum
RadixSort
B_141202_CADENA_NUMERO
FUNTION4
Stub Program for Problem 5 HW 2
pointer example 3
hello kous
Project 3 Part 1 v1.4
stackse - search stackoverflow differently
Please log in to post a comment.