Home » , » Basic C Programming Practice - Practice 28

Basic C Programming Practice - Practice 28

Written By Unknown on Friday, October 11, 2013 | 12:13 AM

=> Write a program in C to Arithmetic operations of two integer numbers. Print these results in separate lines?



Solution :

#include<stdio.h>
#include<conio.h> 

main()

{


int one,two;

scanf("%d%d", &one,&two);

printf("%d\n%d\n%d\n%d\n%d",one+two,one-two,one*two,one/two,one%two);


getch();

} 



Program Analysis :

Share this article :

Post a Comment

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Learn Programming - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger| Distributed by Rocking Templates