Write a program to fill the entire screen with a smiling face. The smiling face has an ASCII value 1.
Write a program to fill the entire screen with a smiling face. The smiling face has an ASCII value 1.
- Get link
- X
- Other Apps
Author:Knowledge desk Date:1 November,2020*/
#include<stdio.h>
#include<conio.h>
main()
{
int num, d1,d2,d3,d4,d5,reverse;
// d1=digit 1 ,d2=digit 2, d3=digit 3 ,d4=digit 4, d5=digit 5//
clrscr();
printf("Enter five digit number:");
scanf("%d",&num);
d1 = num % 10;
num = num / 10;
d2 = num % 10;
num = num / 10;
d3 = num % 10;
num = num / 10;
d4 = num % 10;
num = num / 10;
d5 = num % 10;
num = num / 10;
reverse = d1*10000+ d2*1000+ d3*100+ d4*10+ d5*1;
printf("\nReverse number =%d",reverse);
getch();
return(0);
}
Comments
Post a Comment