Sum of two numbers April 02, 2019 #include<stdio.h> #include<conio.h> { clrscr(); int a=10,b=5; int sum=a+b; printf("Sum = %d",sum); getch(); } Share Get link Facebook X Pinterest Email Other Apps Labels #C #C programming #sum_of_two_numbers Share Get link Facebook X Pinterest Email Other Apps Comments
Reversing digits of a number April 07, 2019 #include<stdio.h> #include<conio.h> void main() { clrscr(); int ,num,rev=0,rem; printf("Enter the number:"); scanf("%d",&num); while(num!=0) { rem=num%10; rev=rev*10+rem; num=num/10; } printf("Reverse of given Number is:%d",rev); getch(); } Read more
Print Number with its square April 07, 2019 #include<stdio.h> #include<conio.h> void main() { clrscr(); int i,lim; printf("Enter the limit:"); scanf("%d",&lim); printf("Number\t\tSquare\n"); for(i=1;i<=10;i++) printf("%d\t\t%d\n",i,i*i); getch(); } Read more
Area of rectangle April 03, 2019 #include<stdio.h> #include<conio.h> { clrscr(); int l=10,b=5; int area=a+b; printf("Area = %d",area); getch(); } Read more
Comments
Post a Comment